January 3, 2016

Hide Yoast SEO Dashboard Widget

For some reason Joost doesn’t want people to hide his dashboard widget with a simple tick box in his plugin’s settings. Fair enough, it’s his plugin… So, to remove the widget you have two options, editing your themes functions.php file or create a plugin, I prefer the latter, but the same code below can be pasted into either:

function remove_dashboard_meta() {
        remove_meta_box( 'wpseo-dashboard-overview', 'dashboard', 'normal' );
}
add_action( 'admin_init', 'remove_dashboard_meta' );

Leave a Reply

Your email address will not be published.

css.php