Created
June 7, 2013 07:30
-
-
Save UmeshSingla/5727597 to your computer and use it in GitHub Desktop.
Wordpress - Remove Logo from Admin Bar
This file contains 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 the WordPress Logo from the WordPress Admin Bar | |
*/ | |
function remove_wp_logo() { | |
global $wp_admin_bar; | |
if(!is_super_admin()){ | |
$wp_admin_bar->remove_menu('wp-logo'); | |
} | |
} | |
add_action( 'wp_before_admin_bar_render', 'remove_wp_logo' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment