Quickly Remove WordPress site health dashboard in WordPress

You can remove the WordPress site health dashboard widget with the following snippets

Remove Site Health Dashboard Widget

add_action('wp_dashboard_setup', 'themeprefix_remove_dashboard_widget' );
 *  Remove Site Health Dashboard Widget
function themeprefix_remove_dashboard_widget() {
    remove_meta_box( 'dashboard_site_health', 'dashboard', 'normal' );
add_action( 'admin_menu', 'remove_site_health_menu' );	
 * Remove Site Health Sub Menu Item
function remove_site_health_menu(){
  remove_submenu_page( 'tools.php','site-health.php' ); 

Disable Site Health Email Notifications

add_filter( 'wp_fatal_error_handler_enabled', '__return_false' );
See also  Add Custom Product Fields Without a Plugin

Leave a Reply