acf_field_date_and_time_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_and_time_picker{}
Хуков нет.
Возвращает
Разное. $value The modified value
Использование
$acf_field_date_and_time_picker = new acf_field_date_and_time_picker(); $acf_field_date_and_time_picker->format_value( $value, $post_id, $field );
- $value(разное) (обязательный)
- The value which was loaded from the database.
- $post_id(разное) (обязательный)
- The post_id from which the value was loaded.
- $field(массив) (обязательный)
- The field array holding all the field options.
Список изменений
| С версии 3.6 | Введена. |
Код acf_field_date_and_time_picker::format_value() acf field date and time picker::format value ACF 6.4.2
public function format_value( $value, $post_id, $field ) {
return acf_format_date( $value, $field['return_format'] );
}