acf_convert_date_to_js() ACF 5.0.0
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 5.9.1
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 );
}