acf_field_radio::update_field() public ACF 3.6
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) (обязательный)
- the field array holding all the field options
-
- ($post_id) (обязательный)
- the field group ID (post_type = acf)
Список изменений
С версии 3.6 | Введена. |
Код acf_field_radio::update_field() acf field radio::update field ACF 5.9.1
function update_field( $field ) {
// decode choices (convert to array)
$field['choices'] = acf_decode_choices($field['choices']);
// return
return $field;
}