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