Created
February 6, 2015 02:12
-
-
Save mauriciogofas/d88b8cc9b2165e736093 to your computer and use it in GitHub Desktop.
Mostra adminbar apenas para admin
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 | |
// Mostra adminbar apenas para admin | |
if ( get_current_user_id() != 1 ) { | |
add_filter( 'show_admin_bar', '__return_false' ); | |
} | |
//Fim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment