Hides the WordPress toolbar (admin bar) for all non-admin users. Simple plugin with no settings to configure.
This plugin hides the WordPress Toolbar (admin bar) for all visitors and users without the ‘administrator’ role. It’s a very simple plugin with no settings to configure.
habfna_show_admin_bar_roles
.This plugin is a tweak of the code by Yoast to hide the admin bar for non-admins only.
hide-admin-bar-from-non-admins
folder to the /wp-content/plugins/
directoryIf you need to show the toolbar for other user roles, use the filter habfna_show_admin_bar_roles
. Here is a code recipe that demonstrates how to use this filter.
This plugin does not handle any user redirection. It’s only for hiding the admin bar. If you are building a site that needs more robust user management, consider our WordPress membership plugin, Paid Memberships Pro.
Paid Memberships Pro allows anyone to build a membership siteāfor free. Restrict content, accept payment, and manage subscriptions right from your WordPress admin.
Please post it in the issues section of GitHub and we’ll fix it as soon as we can. Thanks for helping. https://github.com/strangerstudios/hide-admin-bar-from-non-admins/issues
Please visit our premium support site at https://www.paidmembershipspro.com for more documentation and our support forums.
habfna_show_admin_bar_roles
filter to show the admin toolbar for additional roles.