acf_field_time_picker::initialize
This function will setup the field type data
Метод класса: acf_field_time_picker{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$acf_field_time_picker = new acf_field_time_picker(); $acf_field_time_picker->initialize();
Список изменений
| С версии 5.0.0 | Введена. |
Код acf_field_time_picker::initialize() acf field time picker::initialize ACF 6.4.2
function initialize() {
// vars
$this->name = 'time_picker';
$this->label = __( 'Time Picker', 'acf' );
$this->category = 'advanced';
$this->description = __( 'An interactive UI for picking a time. The time format can be customized using the field settings.', 'acf' );
$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-time.png';
$this->doc_url = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/time-picker/', 'docs', 'field-type-selection' );
$this->defaults = array(
'display_format' => 'g:i a',
'return_format' => 'g:i a',
);
}