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:
Mykyta Synelnikov
2025-04-14 23:12:29 +03:00
parent 08a7b48d53
commit c8bd79fceb
4 changed files with 144 additions and 79 deletions
+4
View File
@@ -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.
}