Serialize data for wp options
To store Data use this Code : save the serialize values $title=”Your Title Value”; $message=”Your message HTML..”; $image=”http://www.domain.com/yourimage.jpg”; $notice_data = array(‘title’ => $title, ‘message’ => $message, ‘image’ => $image ); if(get_option(‘notice_data’) === FALSE){ add_option(‘notice_data’, $notice_data ); }else{ update_option(‘notice_data’, $notice_data ); } Now you can get the serialize values and use in your code $notice_data = … Read more