Skip to content Skip to main menu
User Role Editor
Menu
  • Home
  • Prices
  • Download
  • Testimonials
  • Forums
  • Blog
  • ChangeLog
  • Documentation
  • Login
Home › Reply › Reply To: How to restrict top bar

Change WordPress user roles and capabilities › Forums › How to or FAQ › How to restrict top bar › Reply To: How to restrict top bar

12/04/2015 at 08:06 #1449
boardlife
Participant

Hi again

Thanks for your reply. I tried this for contributors and wrote the code like this:

add_action(‘wp_head’, my_hide_admin_menu_bar);

function my_hide_admin_menu_bar() {

if (current_user_can(‘contributor’)) {
show_admin_bar(false);
}

}

It won’t work. Did I get the code right?

Recent Topics

  • Restrict media library to user’s own media files only
  • Conflict with Events Calendar
  • User Application Passwords Not Rendering for Non-Admins
  • Administrator menu access module is not working on a multisite
  • New custom role capabilities not saved
  • How to use the paid version of plugin?
  • view_dashboard is no longer available?
  • User Role Editor Pro Not Restricting Forms Based on User Roles – Need Help
  • Use Automation to import a URE Pro Export File
  • Global Role Updates Not Syncing to Subsites in Multisite

Recent Replies

  • abmex on Restrict media library to user’s own media files only 2 days, 7 hours ago
  • Vladimir on Restrict media library to user’s own media files only 2 days, 8 hours ago
  • abmex on Restrict media library to user’s own media files only 2 days, 8 hours ago
  • abmex on Restrict media library to user’s own media files only 2 days, 8 hours ago
  • Vladimir on Restrict media library to user’s own media files only 2 days, 9 hours ago
  • Vladimir on Multisite – Capabilities reset when restricting access to a plugin 1 month, 2 weeks ago
  • Andy Burns on Multisite – Capabilities reset when restricting access to a plugin 1 month, 2 weeks ago
  • Vladimir on Multisite – Capabilities reset when restricting access to a plugin 1 month, 2 weeks ago
  • Vladimir on Multisite – Capabilities reset when restricting access to a plugin 1 month, 3 weeks ago
  • Andy Burns on Multisite – Capabilities reset when restricting access to a plugin 1 month, 3 weeks ago
  • Contact Us
  • Privacy Policy
  • Terms of use (EULA)
© 2010 - 2026 Role-editor.com Contact: hd@role-editor.com
Share