Skip to content

Instantly share code, notes, and snippets.

@E-VANCE
Created June 16, 2016 09:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save E-VANCE/fef505168c8b99c0b19769685f9d3e7f to your computer and use it in GitHub Desktop.
Hide/Disable Yoast SEO's nagging display features in the WordPress backend
<?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