acf_field_textarea::initializepublicACF 5.0.0

This function will setup the field type data

Method of the class: acf_field_textarea{}

No Hooks.

Returns

null. Nothing (null).

Usage

$acf_field_textarea = new acf_field_textarea();
$acf_field_textarea->initialize();

Changelog

Since 5.0.0 Introduced.

acf_field_textarea::initialize() code ACF 6.8.8

function initialize() {

	// vars
	$this->name          = 'textarea';
	$this->label         = __( 'Text Area', 'acf' );
	$this->description   = __( 'A basic textarea input for storing paragraphs of text.', 'acf' );
	$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-textarea.png';
	$this->doc_url       = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/textarea/', 'docs', 'field-type-selection' );
	$this->defaults      = array(
		'default_value' => '',
		'new_lines'     => '',
		'maxlength'     => '',
		'placeholder'   => '',
		'rows'          => '',
	);
}