Notifications
Clear all

Script [Closed] Admin bar for Authors?

7 Posts
3 Users
0 Likes
4,036 Views
Posts: 26
Topic starter
(@deanoaus)
Eminent Member
Joined: 8 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: 10503
Admin
(@robert)
Support Team
Joined: 8 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: 8 years ago

OK great, thanks.

Any word on when the photo addon will be released?

Robert
Posts: 10503
Admin
(@robert)
Support Team
Joined: 8 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: 6 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