Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jay Hewitt

    (@jayhewittmac)

    Correction to previous Post:

    try{
        $mvalueArr = unserialize($mvalue);
        if($mvalueArr!==false){
            $mvalue = $mvalueArr;
        }
    } catch (Exception $e){
    
    }
    add_post_meta($newId, $ckey, $mvalue, true);

    Thanks
    J

    Tim

    (@timwakeling-1)

    Thanks very much – needed this fix!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Serialised custom meta gets "corrupted"’ is closed to new replies.