Свойство | Тип | Описание | |
---|---|---|---|
$date_formats | array | Translate date format from jQuery UI date picker to PHP date() It's used to store timestamp value of the field Missing: '!' => '', 'oo' => '', '@' => '', "''" => "'" | |
$time_formats | array | Translate time format from jQuery UI time picker to PHP date() It's used to store timestamp value of the field Missing: 't' => '', T' => '', 'm' => '', 's' => '' |
Метод | Описание | |
---|---|---|
admin_enqueue_scripts ( ) | Enqueue scripts and styles | |
admin_register_scripts ( ) | Register scripts and styles. | |
get_attributes ( array $field, mixed $value = null ) : array | Get the attributes for a field | |
html ( mixed $meta, array $field ) : string | Get field HTML | |
meta ( integer $post_id, boolean $saved, array $field ) : mixed | Get meta value | |
normalize ( array $field ) : array | Normalize parameters for field | |
translate_format ( array $field ) : string | Returns a date() compatible format string from the JavaScript format | |
value ( mixed $new, mixed $old, integer $post_id, array $field ) : string | integer | Calculates the timestamp from the datetime string and returns it if $field['timestamp'] is set or the datetime string if not |
Метод | Описание | |
---|---|---|
prepare_meta ( array | string $meta, array $field ) : array | Format meta value if set 'timestamp' |
public static admin_enqueue_scripts ( ) |
public static admin_register_scripts ( ) |
public static translate_format ( array $field ) : string | ||
$field | array | |
Результат | string |
protected static array $date_formats | ||
Результат | array |
protected static array $time_formats | ||
Результат | array |