acf_field_radio::load_value
This filter is appied to the $value after it is loaded from the db
Method of the class: acf_field_radio{}
No Hooks.
Returns
$value. - the value to be saved in te database
Usage
$acf_field_radio = new acf_field_radio(); $acf_field_radio->load_value( $value, $post_id, $field );
- $value(required)
- .
- $post_id(required)
- .
- $field(required)
- .
Changelog
| Since 5.2.9 | Introduced. |
acf_field_radio::load_value() acf field radio::load value code ACF 6.0.4
function load_value( $value, $post_id, $field ) {
// must be single value
if ( is_array( $value ) ) {
$value = array_pop( $value );
}
// return
return $value;
}