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