Opal-Estate-Pro/inc/class-opalestate-deactivator.php

23 lines
437 B
PHP
Raw Normal View History

2020-06-04 09:13:29 +02:00
<?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Fired during plugin deactivation
*
* This class defines all code necessary to run during the plugin's deactivation.
**/
class Opalestate_Deactivator {
/**
* Deactivate
*/
public static function deactivate() {
$timestamp = wp_next_scheduled( 'opalestate_clean_update' );
wp_unschedule_event( $timestamp, 'opalestate_clean_update' );
}
}