acf_field_radio::update_field
This filter is appied to the $field before it is saved to the database
Method of the class: acf_field_radio{}
No Hooks.
Returns
$field. - the modified field
Usage
$acf_field_radio = new acf_field_radio(); $acf_field_radio->update_field( $field );
- $field(required)
- .
Changelog
| Since 3.6 | Introduced. |
acf_field_radio::update_field() acf field radio::update field code ACF 6.0.4
function update_field( $field ) {
// decode choices (convert to array)
$field['choices'] = acf_decode_choices( $field['choices'] );
// return
return $field;
}