Unyson
Unyson copied to clipboard
Popup warning while updating option from file
The demo import works perfectly fine. But I have to update options. My approach..
add_action('fw_settings_form_saved', array( $this, 'chiki_load_preset' ));
function chiki_load_preset(){
$preset = fw_get_db_settings_option('preset', '');
$data = unserialize(file_get_contents(get_template_directory().'/presets/2.txt'));
update_option('use_balanceTags', $data);
}
This update the option table nicely but shows this error in popup.
How to get rid of this error poup?
my bad , I was echoing a variable . Works perfectly fine now .