Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. // Disable admin bar for everyone but Brandon
  2.  
  3. function remove_admin_bar() {
  4. if (!current_user_can('administrator') && !$user_ID == "15214") {
  5.   show_admin_bar(false);
  6. }
  7. }
  8.  
  9. add_action('after_setup_theme', 'remove_admin_bar');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement