把这个放进你的functions.php
将从仪表板中删除站点运行状况小部件:
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\'] );
}
这将从菜单中删除相应的选项:
add_action( \'admin_menu\', \'remove_site_health_submenu\', 999 );
function remove_site_health_submenu() {
$page = remove_submenu_page( \'tools.php\', \'site-health.php\' );
}
不过,我不认为完全删除站点运行状况是可取的,因为这是一个很好的功能,可以帮助您修复否则可能无法检测到的问题。相反,我的建议是
hiding it from everyone except for the main Admin.