acf_convert_time_to_php()
acf_convert_time_to_php
This fucntion converts a time format string from JS to PHP
Хуков нет.
Возвращает
(Строку)
.
Использование
acf_convert_time_to_php( $time );
- $time **
- -
По умолчанию: ''
Список изменений
С версии 5.0.0 | Введена. |
Код acf_convert_time_to_php() acf convert time to php ACF 6.0.4
function acf_convert_time_to_php( $time = '' ) { // vars $php_to_js = acf_get_setting( 'php_to_js_time_formats' ); $js_to_php = array_flip( $php_to_js ); // return return acf_str_replace( $time, $js_to_php ); }