function wpseo_activate() { wpseo_flush_rules(); }
/** * On deactivation, flush the rewrite rules so XML sitemaps stop working. */ function wpseo_deactivate() { wpseo_flush_rules(); // Clear cache so the changes are obvious. if (function_exists('w3tc_pgcache_flush')) { w3tc_pgcache_flush(); } else { if (function_exists('wp_cache_clear_cache')) { wp_cache_clear_cache(); } } }
/** * On deactivation, flush the rewrite rules so XML sitemaps stop working. */ function wpseo_deactivate() { wpseo_flush_rules(); if (!function_exists('schedule_yoast_tracking')) { require_once WPSEO_PATH . 'inc/wpseo-functions.php'; } schedule_yoast_tracking(null, get_option('wpseo')); // Clear cache so the changes are obvious. if (function_exists('w3tc_pgcache_flush')) { w3tc_pgcache_flush(); } else { if (function_exists('wp_cache_clear_cache')) { wp_cache_clear_cache(); } } }