acf_field_time_picker::initialize
__construct
This function will setup the field type data
Method of the class: acf_field_time_picker{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field_time_picker = new acf_field_time_picker(); $acf_field_time_picker->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_time_picker::initialize() acf field time picker::initialize code ACF 6.0.4
function initialize() {
// vars
$this->name = 'time_picker';
$this->label = __( 'Time Picker', 'acf' );
$this->category = 'jquery';
$this->defaults = array(
'display_format' => 'g:i a',
'return_format' => 'g:i a',
);
}