acf_field_message::load_field()publicACF 3.6

This filter is appied to the $field after it is loaded from the database

@type filter

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

Хуков нет.

Возвращает

$field. - the field array holding all the field options

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

$acf_field_message = new acf_field_message();
$acf_field_message->load_field( $field );
$field (обязательный)
-

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

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

Код acf_field_message::load_field() ACF 5.10.2

function load_field( $field ) {

	// remove name to avoid caching issue
	$field['name'] = '';

	// remove instructions
	$field['instructions'] = '';

	// remove required to avoid JS issues
	$field['required'] = 0;

	// set value other than 'null' to avoid ACF loading / caching issue
	$field['value'] = false;

	// return
	return $field;
}