acf_field__group::initialize()publicACF 5.0.0

__construct

This function will setup the field type data

@type    function

{} Это метод класса: acf_field__group{}

Хуков нет.

Возвращает

null. Ничего.

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

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

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

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

Код acf_field__group::initialize() ACF 5.10.2

function initialize() {

	// vars
	$this->name      = 'group';
	$this->label     = __( 'Group', 'acf' );
	$this->category  = 'layout';
	$this->defaults  = array(
		'sub_fields' => array(),
		'layout'     => 'block',
	);
	$this->have_rows = 'single';

	// field filters
	$this->add_field_filter( 'acf/prepare_field_for_export', array( $this, 'prepare_field_for_export' ) );
	$this->add_field_filter( 'acf/prepare_field_for_import', array( $this, 'prepare_field_for_import' ) );

}