acf_field_flexible_content::update_field()
This filter is appied to the $field before it is saved to the database
Метод класса: acf_field_flexible_content{}
Хуков нет.
Возвращает
$field
. - the modified field
Использование
$acf_field_flexible_content = new acf_field_flexible_content(); $acf_field_flexible_content->update_field( $field );
- $field (обязательный)
- -
Список изменений
С версии 3.6 | Введена. |
Код acf_field_flexible_content::update_field() acf field flexible content::update field ACF 6.0.4
function update_field( $field ) { // loop if ( ! empty( $field['layouts'] ) ) { foreach ( $field['layouts'] as &$layout ) { unset( $layout['sub_fields'] ); } } // return return $field; }