Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'after_setup_theme', 'remove_admin_bar' );
- function remove_admin_bar() {
- if ( ! current_user_can('administrator') && ! is_admin() ) {
- show_admin_bar(false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement