Hello,
i clean the code
if( is_array($value) ) {
foreach ($value as $key => $val) {
//echo var_dump($val);
if ( isset($val['value']) ) {
$value[$key] = $val['value']; // when value is available, like return value/label with API in json
} else {
$value = array_map('strval', $value); // will get directly the parent array
}
}
}
@team, do you need more informations for apply this fix to ACF ?
Thanks