PluginProbe
Search Atlas SEO – OTTO AI SEO Automation for WordPress / 2.6.7
Search Atlas SEO – OTTO AI SEO Automation for WordPress v2.6.7
2.6.26 2.6.25 2.6.24 2.6.23 2.6.22 2.6.21 2.6.20 2.6.19 2.6.18 2.6.17 2.6.16 2.6.15 2.6.14 2.6.13 2.6.12 2.6.11 2.6.10 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 2.6.4 2.6.3 2.5.23 All 138 releases
metasync / includes / class-metasync-deactivator.php

class-metasync-deactivator.php in Search Atlas SEO – OTTO AI SEO Automation for WordPress 2.6.7, at includes/class-metasync-deactivator.php

53 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Fired during plugin deactivation
5 *
6 * @link https://searchatlas.com
7 * @since 1.0.0
8 *
9 * @package Metasync
10 * @subpackage Metasync/includes
11 */
12
13 /**
14 * Fired during plugin deactivation.
15 *
16 * This class defines all code necessary to run during the plugin's deactivation.
17 *
18 * @since 1.0.0
19 * @package Metasync
20 * @subpackage Metasync/includes
21 * @author Engineering Team <support@searchatlas.com>
22 */
23 class Metasync_Deactivator
24 {
25
26 /**
27 * Short Description. (use period)
28 *
29 * Long Description.
30 *
31 * @since 1.0.0
32 */
33 public static function deactivate()
34 {
35 // add_filter('wp_sitemaps_enabled', '__return_true');
36 //delete_option( "metasync_options" );
37 //delete_option( "metasync_options_instant_indexing" );
38
39 // Clean up announce ping counter
40 delete_option('metasync_announce_attempt_count');
41
42 // Unschedule every MetaSync cron hook so no orphaned events remain after deactivation
43 foreach (Metasync_Activator::$cron_hooks as $hook) {
44 wp_unschedule_hook($hook);
45 }
46
47 flush_rewrite_rules();
48
49 // Reset WP-299 one-time cleanup flag so it re-runs on next activation/update
50 delete_option('metasync_wp299_cron_cleanup_done');
51 }
52 }
53