acf_field_button_group::format_value
This filter is appied to the $value after it is loaded from the db and before it is returned to the template
Метод класса: acf_field_button_group{}
Хуков нет.
Возвращает
$value.
Использование
$acf_field_button_group = new acf_field_button_group(); $acf_field_button_group->format_value( $value, $post_id, $field );
- $value(разное) (обязательный)
- The value found in the database.
- $post_id(разное) (обязательный)
- The post ID from which the value was loaded from.
- $field(массив) (обязательный)
- The field array holding all the field options.
Список изменений
| С версии 5.6.3 | Введена. |
Код acf_field_button_group::format_value() acf field button group::format value ACF 6.4.2
function format_value( $value, $post_id, $field ) {
return acf_get_field_type( 'radio' )->format_value( $value, $post_id, $field );
}