mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-12 19:26:35 +09:00
Add scheduled user account status check and improve approval
Introduce a new `Users` class to handle scheduled tasks for user status checks and batch processing. Refactor user approval functionality to allow silent operations and avoid sending notifications where unnecessary. Enhance user registration to prevent unfinished registrations from being processed in scheduled checks.
This commit is contained in:
@@ -39,6 +39,10 @@ if ( ! class_exists( 'um\common\Init' ) ) {
|
||||
if ( empty( UM()->classes['um\common\actions\emails'] ) ) {
|
||||
UM()->classes['um\common\actions\emails'] = new actions\Emails();
|
||||
}
|
||||
|
||||
if ( empty( UM()->classes['um\common\actions\users'] ) ) {
|
||||
UM()->classes['um\common\actions\users'] = new actions\Users();
|
||||
}
|
||||
// Other classes init here as soon as possible.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user