Is there any way that I can set the Toolbar visible to authors, editors and admins and off to everyone else?


Checking the capability of the users you can determine whether to show or not the admin bar.

add_action( 'after_setup_theme', 'remove_admin_bar' );

function remove_admin_bar() {
    if( ! current_user_can( 'administrator' ) || ! current_user_can( 'editor' ) || ! current_user_can( 'author' ) ) {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.