private function RestoreDefaultSettings() { RWLogger::LogEnterence('RestoreDefaultSettings'); // Restore to defaults - clear all settings. $this->_options->clear(); // Restore account details. $this->_options->set_option(WP_RW__DB_OPTION_SITE_PUBLIC_KEY, $this->account->site_public_key); $this->_options->set_option(WP_RW__DB_OPTION_SITE_ID, $this->account->site_id); $this->_options->set_option(WP_RW__DB_OPTION_SITE_SECRET_KEY, $this->account->site_secret_key); $this->_options->set_option(WP_RW__DB_OPTION_OWNER_ID, $this->account->user_id); $this->_options->set_option(WP_RW__DB_OPTION_OWNER_EMAIL, $this->account->user_email); $this->_options->store(); RWLogger::LogDeparture('RestoreDefaultSettings'); }
/** * @author Vova Feldman (@svovaf) * @since 1.0.8 */ static function _debug_page_actions() { self::_clean_admin_content_section(); if (fs_request_is_action('restart_freemius')) { check_admin_referer('restart_freemius'); self::$_accounts->clear(true); return; } }
/** * @author Vova Feldman (@svovaf) * @since 1.0.8 */ static function _debug_page_actions() { if (fs_request_is_action('delete_all_accounts')) { check_admin_referer('delete_all_accounts'); self::$_accounts->clear(true); return; } }
/** * @author Vova Feldman (@svovaf) * @since 1.1.6 */ function clear() { $this->_logger->entrance(); $this->_options->clear(true); }
function clear($flush = false) { $this->_options->clear($flush); }