Created
February 26, 2011 22:56
-
-
Save collegeman/845713 to your computer and use it in GitHub Desktop.
The best way to hide the new WordPress admin bar from subscribers and other non-administrative users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// in functions.php | |
show_admin_bar(!is_admin() && current_user_can('edit_posts')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment