acf_field_radio::initialize() public ACF 5.0.0
__construct
This function will setup the field type data
{} Это метод класса: acf_field_radio{}
Хуков нет.
Возвращает
n/a.
Использование
$acf_field_radio = new acf_field_radio(); $acf_field_radio->initialize();
Список изменений
С версии 5.0.0 | Введена. |
Код acf_field_radio::initialize() acf field radio::initialize ACF 5.9.1
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'
);
}