mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 06:03:38 +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:
@@ -23,6 +23,7 @@ if ( ! class_exists( 'um\ajax\Init' ) ) {
|
||||
$this->forms();
|
||||
$this->pages();
|
||||
$this->secure();
|
||||
$this->users();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,5 +61,17 @@ if ( ! class_exists( 'um\ajax\Init' ) ) {
|
||||
}
|
||||
return UM()->classes['um\ajax\secure'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.8.7
|
||||
*
|
||||
* @return Users
|
||||
*/
|
||||
public function users() {
|
||||
if ( empty( UM()->classes['um\ajax\users'] ) ) {
|
||||
UM()->classes['um\ajax\users'] = new Users();
|
||||
}
|
||||
return UM()->classes['um\ajax\users'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user