2

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?

3

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');
}
| improve this answer | |
  • Hi Sven, it was my understanding that themes & their functions.php files don't have any affect in the admin dashboard. I could be wrong though :) Ignore what I just said, after following the link you provided I discovered the /wp-admin/includes/dashboard.php file and your fix indeed works. Wont it get overwritten with a WP update though? – Admiral Noisy Bottom Apr 2 at 9:59
  • 1
    Thanks for your input. Yes, the changes should be made in a custom plugin or the child themes functions.php file to not get overwritten with the next update. – Sven Apr 2 at 10:30
  • 2
    By default themes don't manipulate the dashboard however the functions.php file does give you the ability to influence tons of different areas within WordPress, including the dashboard. – Tony Djukic Apr 2 at 21:58
  • 1
    It was me... it's working. Thanks – David Apr 12 at 15:43
  • 2
    @AdmiralNoisyBottom you can break whatever you want in wp. – Michael Rogers Apr 19 at 1:09
0

Log in to your Dashboard. On the screen showing the "Site Health" widget, click the "Screen Options" menu item at the top right of your screen and turn off "Site Health" and any other widgets you don't want to see.

Each time you login the Site Health functions will not appear. This is a per user function, therefore turning it off only removes it for you and not other users.

| improve this answer | |
  • 1
    Thank you for your answer. This works very well for individual users but I wanted to remove it altogether from the dashboard. – Sven Apr 2 at 10:27
  • @Sven, that wasn't clear from the question. Good to know. – Admiral Noisy Bottom Apr 2 at 22:43
0

I created a free, lightweight, plugin to solve this issue

https://wordpress.org/plugins/remove-site-heath-from-dashboard/

| improve this answer | |
0

Putting this in your functions.php will remove Site Health widget from the dashboard:

add_action( 'wp_dashboard_setup', 'remove_site_health_widget' );
function remove_site_health_widget() {
        global $wp_meta_boxes;
        unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_site_health'] );
}

And this will remove the respective option from the menu:

add_action( 'admin_menu', 'remove_site_health_submenu', 999 );
function remove_site_health_submenu() {
        $page = remove_submenu_page( 'tools.php', 'site-health.php' );
}

I don't believe that removing Site Health altogether is advisable, though, as it is a nice feature that can help you fix problems that might otherwise be undetected. What I suggest, instead, is hiding it from everyone except for the main Admin.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.