acf_field_button_group::initialize()publicACF 5.6.3

This function will setup the field type data

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

Хуков нет.

Возвращает

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

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

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

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

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

Код acf_field_button_group::initialize() ACF 6.0.4

function initialize() {

	// vars
	$this->name     = 'button_group';
	$this->label    = __( 'Button Group', 'acf' );
	$this->category = 'choice';
	$this->defaults = array(
		'choices'       => array(),
		'default_value' => '',
		'allow_null'    => 0,
		'return_format' => 'value',
		'layout'        => 'horizontal',
	);

}