Created
February 7, 2014 11:47
-
-
Save rickrduncan/8861323 to your computer and use it in GitHub Desktop.
Remove 'SEO' from admin bar for users of WordPress SEO by Yoast. The code belongs in your functions.php file or better yet a functionality plugin.
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 | |
//* Do NOT include the opening php tag | |
//* Remove the link 'SEO' from admin bar. It's placed there by the plugin WordPress SEO by Yoast. | |
add_action( 'wp_before_admin_bar_render', 'wlwp_admin_bar' ); | |
function wlwp_admin_bar(){ | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wpseo-menu'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Still works! Thank You.