acf_field_tab::load_field() public ACF 3.6
This filter is appied to the $field after it is loaded from the database
{} Это метод класса: acf_field_tab{}
Хуков нет.
Возвращает
$field. - the field array holding all the field options
Использование
$acf_field_tab = new acf_field_tab(); $acf_field_tab->load_field( $field );
-
- ($field) (обязательный)
- the field array holding all the field options
Список изменений
С версии 3.6 | Введена. |
Код acf_field_tab::load_field() acf field tab::load field ACF 5.9.1
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;
}