# fluentform/6.2.7/app/Hooks/Handlers/DeactivationHandler.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 6.2.7. 18 lines.

- Page: https://pluginprobe.com/plugins/fluentform/6.2.7/code/app/Hooks/Handlers/DeactivationHandler.php
- Raw: https://pluginprobe.com/plugins/fluentform/6.2.7/raw/app/Hooks/Handlers/DeactivationHandler.php
- Modified: 2023-06-22T15:10:22+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/fluentform/6.2.7/code/app/Hooks/Handlers/DeactivationHandler.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Hooks\Handlers;

class DeactivationHandler
{
    public function handle()
    {
        $this->disableCronSchedule();
    }

    private function disableCronSchedule()
    {
        wp_clear_scheduled_hook('fluentform_do_scheduled_tasks');
        wp_clear_scheduled_hook('fluentform_do_email_report_scheduled_tasks');
    }
}

```
