public function wfg_general_settings()
 {
     if (isset($_POST['_wfg_general_settings_submitted']) && $_POST['_wfg_general_settings_submitted'] == 'Y' && wp_verify_nonce($_POST['_wfg_general_nonce'], 'wfg_general_settings')) {
         $popup_overlay = isset($_POST['_wfg_popup_overlay']) ? 1 : 0;
         $popup_heading = isset($_POST['_wfg_popup_heading']) ? $_POST['_wfg_popup_heading'] : WFG_Common_Helper::translate('Choose your free gift');
         $invalid_text = isset($_POST['_wfg_invalid_condition_text']) ? $_POST['_wfg_invalid_condition_text'] : WFG_Common_Helper::translate('Gift items removed as gift criteria isn\'t fulfilled');
         $add_gift_text = isset($_POST['_wfg_popup_add_gift_text']) ? $_POST['_wfg_popup_add_gift_text'] : WFG_Common_Helper::translate('Add Gifts');
         $cancel_text = isset($_POST['_wfg_popup_cancel_text']) ? $_POST['_wfg_popup_cancel_text'] : WFG_Common_Helper::translate('No Thanks');
         $overlay = update_option('_wfg_popup_overlay', $popup_overlay);
         $heading = update_option('_wfg_popup_heading', $popup_heading);
         $invalid = update_option('_wfg_invalid_condition_text', $invalid_text);
         $add_gift = update_option('_wfg_popup_add_gift_text', $add_gift_text);
         $cancel_text = update_option('_wfg_popup_cancel_text', $cancel_text);
         if ($overlay || $heading || $invalid || $add_gift || $cancel_text) {
             WFG_Common_Helper::success_notice(WFG_Common_Helper::translate('Settings saved successfully'));
             //update settings
             WFG_Settings_Helper::force_init();
         } else {
             WFG_Common_Helper::error_notice(WFG_Common_Helper::translate('No changes to save.'));
         }
     }
     include "pages/general_settings.php";
 }