configs->load_config(); // Let's first save the current aio_wp_security_configs options in a temp option update_option('aiowps_temp_configs', $aio_wp_security->configs->configs); if (is_main_site()) { // Remove all firewall and other .htaccess rules and remove all settings from .htaccess file that were added by this plugin AIOWPSecurity_Configure_Settings::turn_off_all_firewall_rules(); AIOWPSecurity_Configure_Settings::turn_off_cookie_based_bruteforce_firewall_configs(); // Deactivates PHP-based firewall AIOWPSecurity_Utility_Firewall::remove_firewall(); } self::clear_cron_events(); } /** * Helper function which clears aiowps cron events */ private static function clear_cron_events() { wp_clear_scheduled_hook('aiowps_hourly_cron_event'); wp_clear_scheduled_hook('aiowps_daily_cron_event'); wp_clear_scheduled_hook('aios_15_minutes_cron_event'); } }