Skip to:
Content
Pages
Categories
Search
Top
Bottom

WordPress Dashboard


  • alysonmac
    Participant

    @alysonmac

    I do not want members to have access to the wordpress dashboard – is this an option to switch off?

Viewing 2 replies - 1 through 2 (of 2 total)

  • Venutius
    Moderator

    @venutius

    The basic option is to set up a redirect for anyone but admin, that would involve adding some code to your functions.php. There’s probably plugins that d it, but it’s quite simple with code if you are happy with that.

    That would not stop links from appearing in the WordPress admin-bar / toolbar. Would you still want to give them access to the BuddyPress menu options via the toolbar?

    I’ve recently launched a BP specific Front End editor and I’ve included all the various hide admin code in that. You can choose to hide the admin-bar altogether or prune out the menu items you don’t want to display, such as the +New menu item.


    Raakesh
    Participant

    @rocky2sdat

    Please fine below the filter. Hope it works!!

    add_action( 'init', 'remove_admin_bar_user', 10001 );
    function remove_admin_bar_user() {
    
    	if ( current_user_can( 'administrator' ) || is_admin() ) {
    
    		show_admin_bar( true );
    	} else {
    		show_admin_bar( false );
    	}
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar