function cUsCF_saveCustomSettings_callback() { $aryFormOptions = array('tab_user' => filter_input(INPUT_POST, 'tab_user', FILTER_SANITIZE_STRING), 'cus_version' => filter_input(INPUT_POST, 'cus_version', FILTER_SANITIZE_STRING)); update_option('cUsCF_settings_FORM', $aryFormOptions); //UPDATE FORM SETTINGS cUsCF_page_settings_cleaner(); delete_option('cUsCF_settings_inlinepages'); delete_option('cUsCF_settings_tabpages'); die; }
function cUsCF_plugin_db_uninstall() { $cUsCF_api = new cUsComAPI_CF(); $cUsCF_api->resetData(); //RESET DATA cUsCF_page_settings_cleaner(); }
public function resetData() { //PLUGIN OPTIONS delete_option('cUsCF_settings'); delete_option('cUsCF_settings_userData'); delete_option('cUsCF_settings_FORM'); delete_option('cUsCF_HOME_settings'); delete_option('cUsCF_settings_step1'); delete_option('cUsCF_settings_form_key'); delete_option('cUsCF_settings_inlinepages'); delete_option('cUsCF_settings_tabpages'); delete_option('cUsCF_settings_userCredentials'); delete_option('cUsCF_settings_default_deep_link_view'); delete_option('cUsCF_settings_form_id'); delete_option('cUsCF_settings_intro_hints'); cUsCF_page_settings_cleaner(); //REMOVE CUSTOM SETTINGS BY PAGE cUsCF_inline_shortcode_cleaner(); //REMOVE SHORTCODES return true; }