| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentForm\App\Modules; |
| 4 |
|
| 5 |
class Deactivator |
| 6 |
{ |
| 7 |
/** |
| 8 |
* This method will be called on plugin deactivation |
| 9 |
* |
| 10 |
* @return void |
| 11 |
*/ |
| 12 |
public function handleDeactivation() |
| 13 |
{ |
| 14 |
self::disableCronSchedule(); |
| 15 |
} |
| 16 |
|
| 17 |
public static function disableCronSchedule() |
| 18 |
{ |
| 19 |
wp_clear_scheduled_hook('fluentform_do_scheduled_tasks'); |
| 20 |
wp_clear_scheduled_hook('fluentform_do_email_report_scheduled_tasks'); |
| 21 |
} |
| 22 |
} |
| 23 |
|