mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +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:
@@ -526,7 +526,6 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->admin_settings();
|
||||
$this->columns();
|
||||
$this->metabox();
|
||||
$this->users();
|
||||
$this->dragdrop();
|
||||
$this->admin_gdpr();
|
||||
$this->admin_navmenu();
|
||||
@@ -902,20 +901,6 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
return $this->classes['admin_metabox'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
*
|
||||
* @return um\admin\core\Admin_Users()
|
||||
*/
|
||||
function users() {
|
||||
if ( empty( $this->classes['admin_users'] ) ) {
|
||||
$this->classes['admin_users'] = new um\admin\core\Admin_Users();
|
||||
}
|
||||
return $this->classes['admin_users'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user