acf_field_clone::load_field
This filter is appied to the $field after it is loaded from the database
Метод класса: acf_field_clone{}
Хуков нет.
Возвращает
$field. - the field array holding all the field options
Использование
$acf_field_clone = new acf_field_clone(); $acf_field_clone->load_field( $field );
- $field(обязательный)
- .
Список изменений
| С версии 3.6 | Введена. |
Код acf_field_clone::load_field() acf field clone::load field ACF 6.4.2
function load_field( $field ) {
// bail early if not enabled
if ( ! $this->is_enabled() ) {
return $field;
}
// load sub fields
// - sub field name's will be modified to include prefix_name settings
$field['sub_fields'] = $this->get_cloned_fields( $field );
// return
return $field;
}