<?php
/**
 * Fired during plugin deactivation
 *
 * @package SPAI_Contact_Form
 */

class SPAI_Deactivator {
    
    /**
     * Actions to perform on plugin deactivation
     */
    public static function deactivate() {
        // Clear any scheduled cron jobs
        wp_clear_scheduled_hook('spai_process_queue');
        wp_clear_scheduled_hook('spai_cleanup_old_files');
        
        // Flush permalinks
        flush_rewrite_rules();
    }
}
