Created
June 16, 2016 09:33
Star
You must be signed in to star a gist
Hide/Disable Yoast SEO's nagging display features in the WordPress backend
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 | |
/** | |
* Disable Yoast SEO's darn admin bar icon | |
*/ | |
function yoast_hide_admin_bar() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wpseo-menu'); | |
} | |
add_action( 'wp_before_admin_bar_render', 'yoast_hide_admin_bar' ); | |
/** | |
* Hide Yoast SEO's publish box icons | |
*/ | |
function yoast_hide_publish_box_icons() { | |
echo '<style type="text/css"> | |
.yoast-seo-score { | |
display: none !important; | |
} | |
</style>'; | |
} | |
add_action('admin_head', 'yoast_hide_publish_box_icons'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment