• Resolved WUKONS

    (@wukons)


    Hello,
    I was wondering how this would work out, to hide Admin/User menu for Users (new members). Why you ask? Well, once upon a time there was a community with social connect, which already have disabled the access to Panel (for social connected users). All I need is hide WordPress Admin/User menu for the Users role, so they can connect and comment only, no need other stuff.
    Thanks in any advice.

Viewing 1 replies (of 1 total)
  • Thread Starter WUKONS

    (@wukons)

    functions.php:

    if( !current_user_can(‘administrator’) ) {
    add_filter(‘show_admin_bar’, ‘__return_false’);
    } else { }

Viewing 1 replies (of 1 total)
  • The topic ‘Hide 'wpadminbar' for Users’ is closed to new replies.