acf_field_repeater::update_field
This filter is applied to the $field before it is saved to the database.
Method of the class: acf_field_repeater{}
No Hooks.
Returns
Array.
Usage
$acf_field_repeater = new acf_field_repeater(); $acf_field_repeater->update_field( $field );
- $field(array) (required)
- The field array holding all the field options.
Changelog
| Since 3.6 | Introduced. |
acf_field_repeater::update_field() acf field repeater::update field code ACF 6.8.8
public function update_field( $field ) {
unset( $field['sub_fields'] );
return $field;
}