acf_field_time_picker::load_field
This filter is applied to the $field after it is loaded from the database and ensures the return and display values are set.
Method of the class: acf_field_time_picker{}
No Hooks.
Returns
Array.
Usage
$acf_field_time_picker = new acf_field_time_picker(); $acf_field_time_picker->load_field( $field );
- $field(array) (required)
- The field array holding all the field options.
Changelog
| Since 5.11.0 | Introduced. |
acf_field_time_picker::load_field() acf field time picker::load field code ACF 6.0.4
function load_field( $field ) {
if ( empty( $field['display_format'] ) ) {
$field['display_format'] = $this->defaults['display_format'];
}
if ( empty( $field['return_format'] ) ) {
$field['return_format'] = $this->defaults['return_format'];
}
return $field;
}