mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 13:13:33 +09:00
Merge pull request #1695 from ultimatemember/fix/unschedule_um_actions
Refactor deactivation logic to unschedule additional actions
This commit is contained in:
@@ -370,16 +370,18 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Plugin Deactivation
|
||||
*
|
||||
* @since 2.3
|
||||
*/
|
||||
function deactivation() {
|
||||
public function deactivation() {
|
||||
$this->cron()->unschedule_events();
|
||||
}
|
||||
|
||||
$this->maybe_action_scheduler()->unschedule_all_actions( 'um_dispatch_email' );
|
||||
$this->maybe_action_scheduler()->unschedule_all_actions( 'um_schedule_empty_account_status_check' );
|
||||
$this->maybe_action_scheduler()->unschedule_all_actions( 'um_set_default_account_status' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Maybe need multisite activation process
|
||||
|
||||
Reference in New Issue
Block a user