/** * Catch the reload-crawl-issues POST */ private function catch_reload_crawl_issues() { if (isset($_POST['reload-crawl-issues'])) { $crawl_issue_manager = new WPSEO_Crawl_Issue_Manager(); $crawl_issue_manager->remove_last_checked(); } }
/** * Remove the last check timestamp if the profile is switched * * @param $setting * * @return mixed */ public function gwt_sanatize_callback($setting) { $crawl_issue_manager = new WPSEO_Crawl_Issue_Manager(); // Remove last check if new profile is selected if ($crawl_issue_manager->get_profile() != $setting['profile']) { $crawl_issue_manager->remove_last_checked(); } return $setting; }