acf_field_tab::initializepublicACF 5.0.0

This function will setup the field type data

Метод класса: acf_field_tab{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 5.0.0 Введена.

Код acf_field_tab::initialize() ACF 6.4.2

function initialize() {

	// vars
	$this->name          = 'tab';
	$this->label         = __( 'Tab', 'acf' );
	$this->category      = 'layout';
	$this->description   = __( 'Allows you to group fields into tabbed sections in the edit screen. Useful for keeping fields organized and structured.', 'acf' );
	$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-tabs.png';
	$this->doc_url       = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/tab/', 'docs', 'field-type-selection' );
	$this->supports      = array(
		'required' => false,
		'bindings' => false,
	);
	$this->defaults      = array(
		'placement' => 'top',
		'endpoint'  => 0, // added in 5.2.8
		'selected'  => 0, // added in 6.3
	);
}