query(" DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE '_igny8_%' OR meta_key LIKE 'igny8_%' "); // Unschedule ALL cron jobs $cron_hooks = array( 'igny8_sync_post_statuses', 'igny8_sync_site_data', 'igny8_sync_from_igny8', 'igny8_cron_sync_post_statuses', 'igny8_cron_sync_site_data', 'igny8_cron_sync_from_igny8', 'igny8_cron_full_site_scan', 'igny8_cron_sync_keywords', 'igny8_cron_sync_taxonomies', 'igny8_clear_old_webhook_logs', 'igny8_batch_sync_post_statuses', ); foreach ($cron_hooks as $hook) { $timestamp = wp_next_scheduled($hook); while ($timestamp) { wp_unschedule_event($timestamp, $hook); $timestamp = wp_next_scheduled($hook); } // Also clear any hooks from the cron array wp_clear_scheduled_hook($hook); } // Remove all IGNY8 transients $wpdb->query(" DELETE FROM {$wpdb->options} WHERE option_name LIKE '_transient_igny8_%' OR option_name LIKE '_transient_timeout_igny8_%' "); // Remove any IGNY8 user meta $wpdb->query(" DELETE FROM {$wpdb->usermeta} WHERE meta_key LIKE 'igny8_%' OR meta_key LIKE '_igny8_%' "); // Note: Taxonomies and terms are NOT deleted // They remain in WordPress for user reference // Only the taxonomy registration is removed