How to remove the site health dashboard widget?

WordPress 5.4 introduced the Site Health Status dashboard widget (source).

The dashboard widget shows the status of the site health check:

Screenshot of dashboard widgets including the site health status

How can I remove the Site Health Status dashboard widget?

4 Answers
4

The following snippet removes the registered site health dashboard widget from the dashboard. Add the code to your plugin or functions.php file:

add_action('wp_dashboard_setup', 'remove_site_health_dashboard_widget');
function remove_site_health_dashboard_widget()
{
    remove_meta_box('dashboard_site_health', 'dashboard', 'normal');
}

Leave a Comment