acf_field_radio::update_field
This filter is appied to the $field before it is saved to the database
Метод класса: acf_field_radio{}
Хуков нет.
Возвращает
$field. - the modified field
Использование
$acf_field_radio = new acf_field_radio(); $acf_field_radio->update_field( $field );
- $field(обязательный)
- .
Список изменений
| С версии 3.6 | Введена. |
Код acf_field_radio::update_field() acf field radio::update field ACF 6.8.8
function update_field( $field ) {
// decode choices (convert to array)
$field['choices'] = acf_decode_choices( $field['choices'] );
// return
return $field;
}