acf_field_date_and_time_picker::load_field()publicACF 5.11.0

This filter is applied to the $field after it is loaded from the database and ensures the return and display values are set.

{} Это метод класса: acf_field_date_and_time_picker{}

Хуков нет.

Возвращает

Массив.

Использование

$acf_field_date_and_time_picker = new acf_field_date_and_time_picker();
$acf_field_date_and_time_picker->load_field( $field );
$field(массив) (обязательный)
The field array holding all the field options.

Список изменений

С версии 5.11.0 Введена.

Код acf_field_date_and_time_picker::load_field() 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;
}