How to remove the WordPress Site Health Check widget
In WordPress Version 5.4 the Health Check widget was added to the Dashboard by default. For many of us who support clients with administrator roles this could be an annoyance, but here are a few ways to remove it.
1. Manually add a code snippet
Add this to your child theme’s functions.php file
// Removes site health check widget
add_action('wp_dashboard_setup', 'remove_site_health_dashboard_widget');
function remove_site_health_dashboard_widget()
{
remove_meta_box('dashboard_site_health', 'dashboard', 'normal');
}
2 Bulk install a plugin to all sites
The plugin was create for those who use a management tool for client sites and can add and activate a plugin across multiple site. I use MainWP Pro and could do this, but I have use option 3.
3 Bulk add a snippet to all sites (MainWP)
For this I use the snippet above and MainWP’s Code Snippets extension. I cover this in the video.
Best available MainWP deal
25% discount code for the Life time MainWP Pro package. Enter “digitalfreedoms” on checkout.
Note:
The Code Snippets extension adds the code to the database. Should you send to bad code can correct this by deactivating and reactivating the MainWP Child plugin (I have test this).