| @@ -29,18 +29,8 @@ | ||
| 29 | 29 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 30 | 30 | exit; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | -// Consent-gated churn signal. Sent first, while the consent option still | |
| 34 | -// exists below; sends nothing when the site never opted in. The plugin main | |
| 35 | -// file is not loaded during uninstall, so the key constant it normally | |
| 36 | -// defines must be defined here or track() is a silent no-op. | |
| 37 | -if ( ! defined( 'METASYNC_POSTHOG_API_KEY' ) ) { | |
| 38 | - define( 'METASYNC_POSTHOG_API_KEY', getenv('METASYNC_POSTHOG_API_KEY') !== false ? getenv('METASYNC_POSTHOG_API_KEY') : 'phc_ntSayCJE7Ad9eBHRG6ygBaY4BJMa8rFjXcXESun9ftkh' ); // gitleaks:allow -- public write-only PostHog project key | |
| 39 | -} | |
| 40 | -require_once plugin_dir_path( __FILE__ ) . 'includes/class-metasync-posthog.php'; | |
| 41 | -Metasync_PostHog::get_instance()->track( 'plugin_uninstalled', array() ); | |
| 42 | - | |
| 43 | 33 | /** |
| 44 | 34 | * Remove plugin data for the current site. |
| 45 | 35 | * |
| 46 | 36 | * @return void |
| @@ -72,9 +62,8 @@ | ||
| 72 | 62 | 'metasync_media_batch_optimize_cron', |
| 73 | 63 | 'metasync_check_debug_limits', |
| 74 | 64 | 'metasync_speed_cache_cleanup', |
| 75 | 65 | 'metasync_bing_indexnow_submit_event', |
| 76 | - 'metasync_ph_flush_rollups', | |
| 77 | 66 | ); |
| 78 | 67 | foreach ( $cron_hooks as $cron_hook ) { |
| 79 | 68 | wp_clear_scheduled_hook( $cron_hook ); |
| 80 | 69 | } |