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