Plugin Author
Sam B.
(@samberson)
I suppose you’re right, but this is a very simple and easy to use plugin which simplifies the process of hiding the admin bar and deactivates it for all users. It’s also a very small file, so doesn’t take up much space on your server.
@ starvert
If you have hundreds if not thousands of users, doing it one by one is very time consuming. Especially if you don’t want new users to have it.
@mickeyroush
I see your point, but I think I still side with the default configuration… isn’t it ultimately up to the individual user?
Plugin Author
Sam B.
(@samberson)
I suppose, but at least this plug would give the site admin an extremely simple way to remove the admin bar from all users.
@ starverte
Well, that depends on if you allow users to access wp-admin. I don’t allow that, even on my BuddyPress sites.
But what you can do, is turn of the admin bar by default when a new user registers. Then allow it to be turned back on manually with something like this:
// Disable the user admin bar on public side on registration
add_action('user_register','trash_public_admin_bar');
function trash_public_admin_bar($user_ID) {
update_user_meta( $user_ID, 'show_admin_bar_front', 'false' );
}
Plugin Author
Sam B.
(@samberson)
Where would I place that code?
You can create a plugin or add it to you theme’s functions.php
Plugin Author
Sam B.
(@samberson)
Ok. Thank you all for your help. A new plugin is now being developed.