acf_field_radio::initialize
__construct
This function will setup the field type data
Method of the class: acf_field_radio{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field_radio = new acf_field_radio(); $acf_field_radio->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_radio::initialize() acf field radio::initialize code 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',
);
}