<?php
if (!defined('ABSPATH')) {
    exit;
}

class Manfiet_Expense_Tracker_Deactivator {
    public static function deactivate() {
        // Clear scheduled tasks
        wp_clear_scheduled_hook('manfiet_process_recurring_expenses');
        wp_clear_scheduled_hook('manfiet_check_budget_alert');
        wp_clear_scheduled_hook('manfiet_send_monthly_report');

        // Remove custom roles
        Manfiet_Expense_Role_Permissions::remove_roles();

        flush_rewrite_rules();
    }
}
