In this article, we will learn how to remove the site health status widget from the WordPress dashboard. First, go to functions.php and paste below example code.
Example 1:
Try below WordPress PHP code on your theme 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'); }
Source link of the code is: https://github.com/WordPress/WordPress/blob/5.4-branch/wp-admin/includes/dashboard.php#L56
Example 2:
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'] ); }
If these codes are not working properly then click to install the WordPress plugin called Remove Site Health From Dashboard.