Support » Plugin: WP Total Hacks » Turn off admin toolbar

Viewing 1 replies (of 1 total)
  • put this in themes functions.php

    // turn off adminbar for all except admins and edithors
    if ( !current_user_can( 'edit_others_posts' ) ) {
        add_filter( 'show_admin_bar', '__return_false' );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Turn off admin toolbar’ is closed to new replies.