Skip to content

Instantly share code, notes, and snippets.

@collegeman
Created February 26, 2011 22:56
Show Gist options
  • Save collegeman/845713 to your computer and use it in GitHub Desktop.
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
<?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