Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

Script [Closed] Admin bar for Authors?

7 Posts
3 Users
0 Reactions
5,669 Views
Posts: 26
Topic starter
(@deanoaus)
Eminent Member
Joined: 9 years ago

Hey guys, fantastic plugin!

I've noticed your plugin disables the WP admin bar for all users except for admin.
If i enable the option "Show Admin Bar for Members" it shows the bar for every registered user, which is not what I want.

I want to be able to show the admin bar for Authors/Editors & Admins, but not subscribers.

Can this be done?

Thanks!


Topic Tags
6 Replies
Robert
Posts: 10600
Admin
(@robert)
Support Team
Joined: 10 years ago

There is no such option, we'll enable this for editors and authors in near future releases.


Posts: 26
Topic starter
(@deanoaus)
Eminent Member
Joined: 9 years ago

OK great, thanks.

Any word on when the photo addon will be released?


Robert
Posts: 10600
Admin
(@robert)
Support Team
Joined: 10 years ago

You can use this code in current active WordPress theme functions.php file

function my_admin_bar_control_function() {
if (current_user_can('administrator') || current_user_can('editor') || current_user_can('author') ) {
show_admin_bar(true);
} else {
show_admin_bar(false);
}
}
add_action('init', 'my_admin_bar_control_function', 20);

How to Easily Add Custom Code in WordPress (without Breaking Your Site)


Posts: 5
(@ffhwill)
Active Member
Joined: 8 years ago
Posted by: Robert

There is no such option, we'll enable this for editors and authors in near future releases.

Hi there, this feature is crucial to my site. Any chance this could be updated soon?  


Page 1 / 2