acf_field_separator::load_field()
This filter is appied to the $field after it is loaded from the database
Метод класса: acf_field_separator{}
Хуков нет.
Возвращает
$field
. - the field array holding all the field options
Использование
$acf_field_separator = new acf_field_separator(); $acf_field_separator->load_field( $field );
- $field (обязательный)
- -
Список изменений
С версии 3.6 | Введена. |
Код acf_field_separator::load_field() acf field separator::load field ACF 6.0.4
function load_field( $field ) { // remove name to avoid caching issue $field['name'] = ''; // 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; }