title: WP Admin bar hidden on front-end?
body: <p>I am using a function to hide the WP admin bar for specific users with the following code:</p>
  
  <pre><code>//Hide admin bar for subscribers
  if (current_user_can('subscriber') || !is_user_logged_in() ) {
      // user can't view admin bar
      show_admin_bar(false);
  }
  else {
      show_admin_bar(true);
  }
  </code></pre>
  
  <p>It works for <code>subscribers</code> and <code>visitors</code> but when logged in as an <code>administrator</code> the admin bar doesn't show up on the front-end. Can anyone tell me what I'm doing wrong?</p>
  
  <p>SOLUTION: The code above here works</p>