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

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

- Page: https://pluginprobe.com/plugins/fluentform/3.6.31/code/app/Modules/Deactivator.php
- Raw: https://pluginprobe.com/plugins/fluentform/3.6.31/raw/app/Modules/Deactivator.php
- Modified: 2020-06-18T18:27: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/3.6.31/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');
    }
}
```
