Created
June 16, 2016 09:33
-
-
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
This file contains hidden or 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