# fluent-cart/1.6.2/app/Hooks/Handlers/DeactivationHandler.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.2. 18 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.2/code/app/Hooks/Handlers/DeactivationHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.2/raw/app/Hooks/Handlers/DeactivationHandler.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.2/code/app/Hooks/Handlers/DeactivationHandler.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Hooks\Handlers;

class DeactivationHandler
{
    public function handle()
    {
        if (function_exists('as_unschedule_action')) {
            as_unschedule_action('fluent_cart/scheduler/five_minutes_tasks');
        }

        wp_clear_scheduled_hook('fluent_cart/scheduler/five_minutes_tasks');
        wp_clear_scheduled_hook('fluent_cart/scheduler/hourly_tasks');
        wp_clear_scheduled_hook('fluent_cart/scheduler/daily_tasks');
    }
}

```
