Support

Account

Home Forums Bug Reports Update field for multiple choose with array Reply To: Update field for multiple choose with array

  • 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