mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- changed wp-admin > Users page;
* updated filters by status, avoid slow queries for getting users count; * updated bulk-actions for changing statuses (moved to WP native dropdown) * separate handlers for changing user statuses on wp-admin and frontend (partially implemented); * created class UM()->common()->users() to handle user statuses in more clear format; * deprecated old hooks and old functions
This commit is contained in:
@@ -25,6 +25,7 @@ if ( ! class_exists( 'um\common\Init' ) ) {
|
||||
$this->secure()->hooks();
|
||||
$this->site_health();
|
||||
$this->theme()->hooks();
|
||||
$this->users()->hooks();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,5 +87,17 @@ if ( ! class_exists( 'um\common\Init' ) ) {
|
||||
}
|
||||
return UM()->classes['um\common\theme'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.8.7
|
||||
*
|
||||
* @return Users
|
||||
*/
|
||||
public function users() {
|
||||
if ( empty( UM()->classes['um\common\users'] ) ) {
|
||||
UM()->classes['um\common\users'] = new Users();
|
||||
}
|
||||
return UM()->classes['um\common\users'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user