Added: Clean Up settings
This commit is contained in:
22
inc/class-opalestate-deactivator.php
Normal file
22
inc/class-opalestate-deactivator.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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' );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user