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.

Remove Site Health From Dashboard

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.

MainWP Coupon

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).

DWcircle

I build websites at WP Corner Shop and travel. I also co-host a weekly WordPress podcast called WP Builds and make YouTube videos.

2 Comments

  1. Fredo Fredo on 5th August 2020 at 12:42 pm

    Note that this does not disable site health tests which still are internally called via cron, it only hides the dashboard widget.

    • David Waumsley David Waumsley on 7th August 2020 at 6:49 am

      Thanks Fredo. Yes, this is just for the dashboard. I am personally happy to still have it under the tools menu. In my case it never prompted clients to ask about it.

Leave a Comment