| 1 |
<?php |
| 2 |
/** |
| 3 |
* Statify: Statify_Deactivate class |
| 4 |
* |
| 5 |
* This file contains the derived class for the plugin's deactivation actions. |
| 6 |
* |
| 7 |
* @package Statify |
| 8 |
* @since 1.4.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
// Quit if accessed outside WP context. |
| 12 |
defined( 'ABSPATH' ) || exit; |
| 13 |
|
| 14 |
/** |
| 15 |
* Statify_Deactivate |
| 16 |
* |
| 17 |
* @since 1.4.0 |
| 18 |
*/ |
| 19 |
class Statify_Deactivate { |
| 20 |
|
| 21 |
/** |
| 22 |
* Plugin deactivation actions |
| 23 |
* |
| 24 |
* @since 1.4.0 |
| 25 |
* @version 1.4.0 |
| 26 |
*/ |
| 27 |
public static function init(): void { |
| 28 |
|
| 29 |
// Delete transients. |
| 30 |
delete_transient( 'statify_data' ); |
| 31 |
|
| 32 |
// Delete cron event. |
| 33 |
wp_clear_scheduled_hook( 'statify_cleanup' ); |
| 34 |
} |
| 35 |
} |
| 36 |
|