Last active
August 26, 2016 10:00
-
-
Save sjaved87/11b514769cd159a23c582a4aa4a3befb to your computer and use it in GitHub Desktop.
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 | |
function print_custom_style (){ | |
if(!is_super_admin()){ | |
echo '<style> #wp-admin-bar-blog-1 {display: none !important} </style>'; | |
} | |
} | |
//For wp-admin | |
add_action('admin_head', 'print_custom_style'); | |
//For frontend | |
add_action('wp_head', 'print_custom_style'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment