Created
January 21, 2015 06:00
-
-
Save digitalchild/327630fd1c92c2be3a2e to your computer and use it in GitHub Desktop.
Disable WordPress admin bar
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 | |
| /** | |
| * Place this in your functions.php | |
| */ | |
| 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