Created
April 13, 2017 10:56
-
-
Save JeppeSigaard/856f5d5e5fec8ce35a992a735eb14ad0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* Plugin name: Fjern admin bar */ | |
add_action('init',function(){ | |
if(!is_user_logged_in()){ | |
add_filter( 'show_admin_bar', '__return_false' ); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment