Support

Account

Home › Forums › General Issues › Enter Serialized Data › Reply To: Enter Serialized Data

  • I have no idea what I’m doing. You mean something like this?

    function custom_unserialize($string){
    	  try {
            $reformatted = unserialize($string);
        } catch (\Exception $e) {
            return false;
        }
    
        
    	return $reformatted;
    }
    
    add_filter( 'acf/load_value/name=_catcbll_btn_label', 'custom_unserialize', 10 );