This topic contains 10 reply and 3 voices, and was last updated by ManaKio 6 years, 1 month ago
Viewing 10 Posts - 1 through 10 (of 10 total)
Author Posts
September 30, 2015 at 1:21 pm 73523
ManaKio Hi, In the option: Admin area access = "admin only" I want to keep the admin bar active for everyone even for non connected Is it possible? Thank you
September 30, 2015 at 4:21 pm 73540
Nayem Nayem

You can use this code snippets-

function add_admin_caps() {
    $role = get_role( '###');
add_action( 'admin_init', 'add_admin_caps');

You have to insert those codes in your theme function.php file.

*** Please replace ### with the role you want to add access of administrator. 🙂

September 30, 2015 at 6:33 pm 73575
yoann bournazaud yoann bournazaud

Thank you for your answer but I expressed myself badly

I use a plugin “WP Symposium Toolbar” that can activate the admin bar all the time but your plugin prevents the bar from appearing for not connected user.

I would like always show the admin bar even for not connected

Thank you

September 30, 2015 at 7:10 pm 73600
yoann bournazaud yoann bournazaud

Sorry but the plugin doesn’t work

the problem is coming from your plugin: the bar disappears when I activated it and appears when i deactivated your plugin

Thank you

September 30, 2015 at 7:20 pm 73601
Nayem Nayem


You can disable those filter from wp-content/plugins/Wp user frontend pro/wpuf.php file. In this file you will get these filter-

add_action( 'show_admin_bar', array($this, 'show_admin_bar') ); – Comment out this filter then check.

September 30, 2015 at 7:34 pm 73604
yoann bournazaud yoann bournazaud

Perfect his works

is it possible to desactived this filter directly in the function.php in such a way that I have not to do it again at each update.

Thank you very much

October 1, 2015 at 1:01 pm 73667
Nayem Nayem

You can do this by removing the action like – remove_action( 'show_admin_bar', array($this, 'show_admin_bar') );

October 1, 2015 at 1:03 pm 73669
yoann bournazaud yoann bournazaud

Thank you very much

October 1, 2015 at 1:07 pm 73670
Nayem Nayem This reply has been marked as private.
October 5, 2015 at 11:05 pm 74134
ManaKio ManaKio

I have a similar but unrelated issue.

I do not want the admin bar to show up for anyone from the frontend, logged in or not. Not even myself as the admin etc…

I have even tried unchecking the box that says “Show Toolbar when viewing site” in the admin edit profile section but the admin bar still shows up on the front end for anyone given the ‘admin’ or ‘editor’ role.

I have a plugin installed called “Hide Admin Bar” activated, I have been using it for years and have never had another program override it’s settings.

I also tried a plugin called “Global Hide Admin Toolbar” and it too allows me to hide admin bar on the frontend from all users but WP Users Frontend Pro overrides these plugins and still shows the admin bar.

What can I do if I don’t want “Anyone” not even “Myself” to be bothered with or shown the admin bar in the frontend??


October 5, 2015 at 11:47 pm 74136
ManaKio ManaKio

OK, commenting out line 73 add_action( 'show_admin_bar', array($this, 'show_admin_bar') );

Worked with Global Hide Admin plugin but not with ‘Hide Admin Toolbar’

So issue is closed for me, thanks…

Viewing 10 Posts - 1 through 10 (of 10 total)