mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed problem with multisite;
- fixed problem with members directory search; - fixed admin bar;
This commit is contained in:
@@ -22,11 +22,8 @@ add_action( 'init', 'um_block_wpadmin_by_user_role', 99 );
|
||||
* @return bool
|
||||
*/
|
||||
function um_control_admin_bar( $content ) {
|
||||
if ( is_user_logged_in() ) {
|
||||
if ( um_user( 'can_not_see_adminbar' ) ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
if ( is_user_logged_in() && um_user( 'can_not_see_adminbar' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
||||
Reference in New Issue
Block a user