acf_field_radio::initialize()publicACF 5.0.0

__construct

This function will setup the field type data

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

Хуков нет.

Возвращает

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

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

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

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

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

Код acf_field_radio::initialize() ACF 6.0.4

function initialize() {

	// vars
	$this->name     = 'radio';
	$this->label    = __( 'Radio Button', 'acf' );
	$this->category = 'choice';
	$this->defaults = array(
		'layout'            => 'vertical',
		'choices'           => array(),
		'default_value'     => '',
		'other_choice'      => 0,
		'save_other_choice' => 0,
		'allow_null'        => 0,
		'return_format'     => 'value',
	);

}