mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- changed WP Cron scheduled events;
This commit is contained in:
@@ -213,6 +213,8 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
//run activation
|
||||
register_activation_hook( um_plugin, array( &$this, 'activation' ) );
|
||||
|
||||
register_deactivation_hook( um_plugin, array( &$this, 'deactivation' ) );
|
||||
|
||||
if ( is_multisite() && ! defined( 'DOING_AJAX' ) ) {
|
||||
add_action( 'wp_loaded', array( $this, 'maybe_network_activation' ) );
|
||||
}
|
||||
@@ -454,6 +456,16 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Plugin Deactivation
|
||||
*
|
||||
* @since 2.3
|
||||
*/
|
||||
function deactivation() {
|
||||
$this->cron()->unschedule_events();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Maybe need multisite activation process
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user