function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
For specific user roles you can wrap the add_action in a conditional, something like
if(current_user_can('editor')){
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
}
Related Posts:
- Remove toolbar option (and set to default to no) in user profile
- Where the Nickname is being used in WordPress
- How to hide fields from my user profiles
- Disable Admin Bar Render on Plugin Page
- List of plugin updates in admin bar
- How to display public user profile with 2 additional fields? (GitHub source code included)
- Adding with javascript to admin bar. Works in Chrome/Safari, not Firefox
- How to make first_name and last_name required fields in user profile?
- How to upload user profile image from frontend in wordpress ?
- Information and Videos for Customers in the Backend [closed]
- Redirecting a buddyboss profile tab to a different tab if not subscribed to a specific membership
- Can you use another Profile Builder shortcodes through advanced custom fields
- Why Is This Code Causing The Admin Bar to Disappear?
- Center and hide overflow of WP toolbar custom links
- How to redirect users to their profile after they successfully edit their profile
- How to have sample page for each new register users in a membership website
- How to extract data from ‘edit my profile’ page in WordPress?
- How can I modify admin bar only if my plugin is loaded
- how to connect the author profile with google webmaster tools in multiuser blog?
- Making that Admin Bar transparent or a blue color
- Add user meta after a user has registered and logged In [closed]
- BuddyPress admin bar links are broken [closed]
- admin bar disappears completely in 2010 theme
- Get user edit functions in frontend for site admin
- Creating an admin button that when clicked shows a popup form
- how to create user profile pages and display them based on users roles
- wp_set_password() does not work!
- Which membership plugin enables users to enter html links in blogs and on their profile page?
- How to disable users to view Other pages
- Using WordPress to create a simple web app (SaaS) [closed]
- How to get author developer link on plugin page
- How to copy data from user profile page (profile.php) to theme customizer
- how do you point ‘screen_function’ to a function in the same class? [closed]
- Displaying custom profile fields using Mingle Plugin
- SOLVED – $wp_admin_bar and AJAX calls
- Frontpage Admin Bar Disappeared
- Plugin link does not appear in my toolbar
- How to make wordpress backend mobile optimized.?
- Tips on using a custom template with Ultimate Member
- Issues with creating user profile for a subscriber, but with different profile page and functionalities
- show_admin_bar filter not called inside plugin class
- Given the ID of a product in woocommerce, how can I get its URL?
- How to delete all records from or empty a custom database table?
- Add Plugins to WordPress Theme
- Search and replace text across all posts
- Using rewrite rule to access a view of a plugin from home page
- Thumb rating for wordpress – top user
- How to Get Admin Settings for a widget when using the_widget() with custom widget
- Upload files programmatically to users
- Shortcode in AJAX popup
- Set attached to state
- Converting Attachment to Images?
- Localiztion in javascript
- Why none of the plugins that have ajax doesn’t work in my website?
- wordpress reusable content blocks
- Is there a filter for get_post_custom()?
- Problem with wordpress version 3.8
- How to make a customize role and view a specific plugins base on that role?
- Accessing post’s meta data based on user’s click of a post
- Remove strange code from wordpress footer [closed]
- Removing an action from wp_footer called in a class that’s inside a bigger class
- WordPress Widget – Saving multidimensional arrays into $instance
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- Run function on plugin activation before plugin is loaded
- Updating options into the wp database performance
- Creating author Specific page URL
- I want to know about the plugins that help in while I write code on my Page? [closed]
- How to get specific string/value from an array? php [closed]
- Woocomerce add info after order email prouct item
- WordPress super admin login issue. (Automatically logout)
- Why is it important to check for isset and is_array before checking in_array in this example?
- Plugins & backup not working correctly on new Digital Ocean server
- Don’t load the theme for a page FROM a plugin EDITED
- WordPress Feed Creator Name Tag Full Name Instead Of First Name
- How to force load a page in plugin?
- Attachments broken after giving WordPress its own directory
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- Remove Zero Money From Previews Order woocommerce
- Having a problem with rewrite_rules and rewrite_tags – url not rewriting properly and query var missing
- Get full URL of WP plugin admin page
- WooCommerce Stripe payment plugin working perfectly in storefront parent theme but not in the child theme
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- Public WP website with one area just for members
- WordPress website dont load CSS, JS and images
- Echo custom admin field into a is_single()
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- Hide ‘add to cart’ button for some products [duplicate]
- Options page textarea to populate custom post select field
- Add Flatr button to Sharing option
- Cannot access variables within a widget
- Advanced Permalinks plugin breaks RSS
- Add meta tags with a plugin?
- How to use ‘Event Manager Shortcodes’ plugin via the php code? [closed]
- Upload Image to desired directory through plugin
- Fast Tranfering my WordPress site to another server
- Display out of stock products in WooCommerce [closed]
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- Plugin that supports the purchase and installation of other plugins?
- No Google Analytics code rendered in the header?
- Cron Job not working