Remove WP header toolbar in Vantage except Account Link Login/Logout
Remove
WP header toolbar in Vantage except Dashboard, and Account Link Login/Logout.
I was able to get this done using a plugin named "Take Control Of The Wordpress Toolbar" but here's a few things a made:
In the paulund-toolbar.php I commented out the below lines of code:
// Remove the user details tab
// if( $options['my_account'] == 1){
// $wp_admin_bar->remove_menu('my-account');
// } else {
// $my_account = $wp_admin_bar->get_node('my-account');
//
// $wp_admin_bar->add_node( array(
// 'id' => 'my-account',
// 'title' => $options['howdy_text'],
// 'meta' => array()
// ) );
// }
Though there's one more thing that needs to be done hopefully someone would be able to help out. If I pull up my website as domain.com/
wp-admin while currently logged in as "Contributor",
WP is showing me the following left toolbar:
Payments (no access)
Listings
Posts
Comments
Contact
Icons
Profile
Tools
Can this be restricted from the Contributor's profile?
Thank you.