Last active
April 20, 2016 08:17
-
-
Save crewstyle/9ca3631692190112ffe8fc91118b2f81 to your computer and use it in GitHub Desktop.
WordPress ~ Remove admin bar - #frontend #optimisation
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 | |
//Remove admin bar since WP v3.1 | |
add_filter('show_admin_bar', '__return_false'); | |
remove_action('init', 'wp_admin_bar_init'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment