transmitstudio
12/11/2014 - 12:44 AM

Hide admin bar from non-editors.php

<?php

add_action('set_current_user', 'xmit_hide_admin_bar');
function xmit_hide_admin_bar() {
  if (!current_user_can('edit_posts')) {
    show_admin_bar(false);
  }
}

?>