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).
I build websites at WP Corner Shop and travel. I also co-host a weekly WordPress podcast called WP Builds and make YouTube videos.
Note that this does not disable site health tests which still are internally called via cron, it only hides the dashboard widget.
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.