acf_field_color_picker::initialize
__construct
This function will setup the field type data
Method of the class: acf_field_color_picker{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field_color_picker = new acf_field_color_picker(); $acf_field_color_picker->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_color_picker::initialize() acf field color picker::initialize code ACF 6.0.4
function initialize() {
// vars
$this->name = 'color_picker';
$this->label = __( 'Color Picker', 'acf' );
$this->category = 'jquery';
$this->defaults = array(
'default_value' => '',
'enable_opacity' => false,
'return_format' => 'string', // 'string'|'array'
);
}