statify_deactivate.class.php in Statify 1.4.1, at inc/statify_deactivate.class.php
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | /* Quit */ |
| 5 | defined('ABSPATH') OR exit; |
| 6 | |
| 7 | |
| 8 | /** |
| 9 | * Statify_Deactivate |
| 10 | * |
| 11 | * @since 1.4.0 |
| 12 | */ |
| 13 | |
| 14 | class Statify_Deactivate |
| 15 | { |
| 16 | |
| 17 | |
| 18 | /** |
| 19 | * Plugin deactivation actions |
| 20 | * |
| 21 | * @since 1.4.0 |
| 22 | * @change 1.4.0 |
| 23 | */ |
| 24 | |
| 25 | public static function init() |
| 26 | { |
| 27 | /* Delete transients */ |
| 28 | delete_transient('statify_data'); |
| 29 | |
| 30 | /* Delete cron event */ |
| 31 | wp_clear_scheduled_hook('statify_cleanup'); |
| 32 | } |
| 33 | } |