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
Method of the class: acf_field_button_group{}
No Hooks.
Returns
$value.
Usage
$acf_field_button_group = new acf_field_button_group(); $acf_field_button_group->format_value( $value, $post_id, $field );
- $value(mixed) (required)
- The value found in the database.
- $post_id(mixed) (required)
- The post ID from which the value was loaded from.
- $field(array) (required)
- The field array holding all the field options.
Changelog
| Since 5.6.3 | Introduced. |
acf_field_button_group::format_value() acf field button group::format value code ACF 6.8.8
function format_value( $value, $post_id, $field ) {
return acf_get_field_type( 'radio' )->format_value( $value, $post_id, $field );
}