acf_field_repeater::update_field()publicACF 3.6

This filter is applied to the $field before it is saved to the database.

Метод класса: acf_field_repeater{}

Хуков нет.

Возвращает

Массив.

Использование

$acf_field_repeater = new acf_field_repeater();
$acf_field_repeater->update_field( $field );
$field(массив) (обязательный)
The field array holding all the field options.

Список изменений

С версии 3.6 Введена.

Код acf_field_repeater::update_field() ACF 6.0.4

function update_field( $field ) {
	unset( $field['sub_fields'] );
	return $field;
}