Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Steve,

    You can use what’s called a filter to add toolbar menus to the excluded list.

    Side note: The way a filter works, is it takes an existing value or group of values (in this case a group of values), and lets you modify it before passing it back to WordPress. So what we need to do here is take that group, add in the id for the About WordPress menu (wp-logo) and then pass it back to WordPress.

    If you add following to your theme’s functions.php file, it will hide the WordPress logo menu from the front-end for disallowed users:

    function steve_hide_wplogo_menu( $nodes ) {
    	$nodes[] = 'wp-logo';
    	return $nodes;
    }
    add_filter( 'rda_frontend_toolbar_nodes', 'steve_hide_wplogo_menu' );

    If you also want to hide it when disallowed users are in the Dashboard, add this just below the code from above:

    add_filter( 'rda_toolbar_nodes', 'steve_hide_wplogo_menu' );

    Hope that helps.

    Thread Starter stevephome

    (@stevephome)

    Awesome! Thanks Drew. (I know what I am doing this weekend…crash course in WordPress dev ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove access to About WordPress menu item’ is closed to new replies.