function cUsDF_plugin_db_uninstall() { $cUsDF_api = new cUsComAPI_DF(); $cUsDF_api->DF_resetData(); //RESET DATA cUsDF_page_settings_cleaner(); }
function cUsDF_saveCustomSettings_callback() { //echo $_REQUEST['tab_user']; exit; $aryFormOptions = array('tab_user' => $_REQUEST['tab_user'], 'cus_donation_version' => $_REQUEST['cus_donation_version']); update_option('cUsDF_FORM_settings', $aryFormOptions); //UPDATE FORM SETTINGS cUsDF_page_settings_cleaner(); delete_option('cUsDF_settings_inlinepages'); delete_option('cUsDF_settings_tabpages'); die; }
public function DF_resetData() { delete_option('cUsDF_settings'); delete_option('contactus_settings'); delete_option('cUsDF_settings_userData'); delete_option('cUsDF_FORM_settings'); delete_option('cUsDF_settings_step1'); delete_option('cUsDF_settings_form_key'); delete_option('contactus_settings_inlinepages'); delete_option('cUsDF_settings_inlinepages'); delete_option('contactus_settings_tabpages'); delete_option('cUsDF_settings_tabpages'); delete_option('cUsDF_settings_userCredentials'); delete_option('cUsDF_default_deep_link_view'); delete_option('cUsDF_settings_form_id'); // DEFAULT FORM KEYS cUsDF_page_settings_cleaner(); cUsDF_inline_shortcode_cleaner(); //echo 'deleted data. . .'; return true; }