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