# fluentform/4.3.19/app/Modules/Deactivator.php

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

- Page: https://pluginprobe.com/plugins/fluentform/4.3.19/code/app/Modules/Deactivator.php
- Raw: https://pluginprobe.com/plugins/fluentform/4.3.19/raw/app/Modules/Deactivator.php
- Modified: 2022-10-21T13:26:36+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/4.3.19/code/app/Modules/Deactivator.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Modules;

class Deactivator
{
    /**
     * This method will be called on plugin deactivation
     *
     * @return void
     */
    public function handleDeactivation()
    {
        self::disableCronSchedule();
    }

    public static function disableCronSchedule()
    {
        wp_clear_scheduled_hook('fluentform_do_scheduled_tasks');
        wp_clear_scheduled_hook('fluentform_do_email_report_scheduled_tasks');
    }
}

```
