This topic has 2 replies, 2 voices, and was last updated 10 years by dudeincolorado.

  • Author
  • #33802
     dudeincolorado
    Participant

    Is there a way to hide the left part of the WP top toolbar for basic buddy press subscribers so that they can not access the dashboard?

    #33804
     sharmstr
    Moderator

    You’re sort of asking two things here.

    1 – Remove the link.

    2 – Block access to the backend.

    If someone is familiar with wordpress, they can still get to the backend even if you’ve removed the link to it.

    Those are both WP specific questions and there are plugins for both. With that said, here’s some code to get you started.

    1 – To remove the link you use $wp_admin_bar->remove_menu() in your functions.php file. Example

    COPY CODE
    
    function remove_admin_bar_links() {
    	global $wp_admin_bar;
    	$wp_admin_bar->remove_menu('wp-logo');
    	$wp_admin_bar->remove_menu('site-name');
    	$wp_admin_bar->remove_menu('new-content');
    }
    add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );
    

    2 – I personally use the adminimize plugin to control what is displayed based on user type. https://wordpress.org/plugins/adminimize/ Its granular which makes it a bit overwhelming and probably overkill for your requirement. Do a search for either a code snippet or a simple plugin.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #33805
     dudeincolorado
    Participant

    There are a mind boggling number of WP plugins out there… Thanks for the help

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Disable WP Dashboard Access For Users’ is closed to new replies.

Log in with your credentials

Forgot your details?