acf_field_date_picker::format_value
This filter is appied to the $value after it is loaded from the db and before it is returned to the template
Метод класса: acf_field_date_picker{}
Хуков нет.
Возвращает
$value. (mixed) the modified value
Использование
$acf_field_date_picker = new acf_field_date_picker(); $acf_field_date_picker->format_value( $value, $post_id, $field );
- $value(обязательный)
- .
- $post_id(обязательный)
- .
- $field(обязательный)
- .
Список изменений
| С версии 3.6 | Введена. |
Код acf_field_date_picker::format_value() acf field date picker::format value ACF 6.4.2
function format_value( $value, $post_id, $field ) {
// save_format - compatibility with ACF < 5.0.0
if ( ! empty( $field['save_format'] ) ) {
return $value;
}
// return
return acf_format_date( $value, $field['return_format'] );
}