| 1 |
<?php |
| 2 |
namespace BetterLinks; |
| 3 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 4 |
|
| 5 |
class Uninstall |
| 6 |
{ |
| 7 |
public function __construct() |
| 8 |
{ |
| 9 |
$this->clear_cron_events(); |
| 10 |
Helper::clear_query_cache(); |
| 11 |
} |
| 12 |
public function clear_cron_events() |
| 13 |
{ |
| 14 |
wp_clear_scheduled_hook('betterlinks/write_json_links'); |
| 15 |
wp_clear_scheduled_hook('betterlinks/analytics'); |
| 16 |
} |
| 17 |
} |
| 18 |
|