Skip to content

Commit

Permalink
Merge pull request #67 from humanmade/re-add-remove-dashboard-widget
Browse files Browse the repository at this point in the history
re-add remove_dashboard_widget function
  • Loading branch information
roborourke authored Jun 7, 2021
2 parents 872add5 + c42a97c commit a7d9554
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ function load_wpseo() {
}
}

/**
* Remove the Yoast SEO dashboard widget.
*/
function remove_yoast_dashboard_widget() {
remove_meta_box( 'wpseo-dashboard-overview', 'dashboard', 'normal' );

// This script & style are enqueued by Yoast.
wp_dequeue_script( 'dashboard-widget' );
wp_dequeue_style( 'wp-dashboard' );
}

/**
* Load the SEO metadata plugin.
*
Expand Down

0 comments on commit a7d9554

Please sign in to comment.