Home › Toolset Professional Support › [Resolved] Access hide WP back-end and toolbar for members
Problem:
The issue here is that the user wanted to hide the admin bar from non-admins
Solution:
Have a look at this and it should allow you to do this.
http://www.wpbeginner.com/wp-tutorials/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators/
0% of people find this useful.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
Tagged: Access plugin
This topic contains 7 replies, has 2 voices.
Last updated by arnoldd 7 years, 1 month ago.
Assisted by: Shane.
I have a members site where members with a custom role can post messages and update their profile and so on from the front-end. Something like this: https://toolset.com/documentation/user-guides/cred-training-course/part-9-listing-items-belong-logged-user/
I use everything from Toolset including Access.
But logged in users will still see the toolbar after logging in and can access the wp dashboard in the back-end. This does not seems correct for a membership site. I can not find anything in Access that completely disables the backend for members, and also the toolbar.
Mayby, the "read" function, but by a work around (url) it is still possible to come in the back-end.
Is this possible with Toolset?
Hi Arnold,
Thank you for contacting our support forum.
Could you try going to the roles in access and changed the role permissions so that none of the checkboxes are ticket.
Please let me know if this helps.
Thanks,
Shane
That did the trick for accept the admin bar.
if i try:
add_filter('show_admin_bar', '__return_false');
or:
show_admin_bar(false);
the admin bar stops showing on my admin account. But not on the custom Access created user role.
Hi Arnold,
You can follow the instructions below to hide the admin bar for all non-admins.
hidden link
Please let me know if this helps.
Thanks,
Shane
No,
The only thing that works is:
add_filter( 'show_admin_bar', '__return_false' );
But only at the admin accound and no other one, not even WP roles?
Very very strange. I have now used multiple code snippets.
No one works with any user role except admin. Also does the check box don't work in my profile? Only at admin role.
Are there more users who experienced this issue?
A WP 4.8.2 error?
Hi Arnold,
Would you mind allowing me to have a look at this for you ?
The private fields will be enable for your next response.
Thanks,
Shane
I think i found the culprit: Maintenance plugin.
There is a checkbox in the menu of this plugin: "Show admin bar". It owerwrites al other functions.
Sorry for your time.