# fluent-booking/2.3.0/app/Hooks/Handlers/DeactivationHandler.php

Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution, version 2.3.0. 30 lines.

- Page: https://pluginprobe.com/plugins/fluent-booking/2.3.0/code/app/Hooks/Handlers/DeactivationHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-booking/2.3.0/raw/app/Hooks/Handlers/DeactivationHandler.php
- Modified: 2025-08-28T13:55:42+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-booking/2.3.0/code/app/Hooks/Handlers/DeactivationHandler.php#L10-L20`.

```php
<?php

namespace FluentBooking\App\Hooks\Handlers;

use FluentBooking\Framework\Foundation\Application;

class DeactivationHandler
{
    protected $app = null;

    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    public function handle()
    {
        if(function_exists('\as_unschedule_all_actions')) {
            \as_unschedule_all_actions('fluent_booking_five_minutes_tasks');
            \as_unschedule_all_actions('fluent_booking_hourly_tasks');
            \as_unschedule_all_actions('fluent_booking/daily_tasks');
        }

        wp_clear_scheduled_hook('fluent_booking_five_minutes_tasks');
        wp_clear_scheduled_hook('fluent_booking_hourly_tasks');
        wp_clear_scheduled_hook('fluent_booking/daily_tasks');
    }

}

```
