Verified Commit 11d10176 authored by Kevin Cristiano's avatar Kevin Cristiano 🌎

disable all health check tests and remove health check menu

Plugin Name: Disable Health Check
Version: 1.0
Plugin URI:
Description: Turns off Health Check Tests
Author: Kevin Cristiano
Author URI:
function tc_remove_async_tests( $tests ) {
unset( $tests['async'] );
return $tests;
add_filter( 'site_status_tests', 'tc_remove_async_tests' );
function tc_remove_direct_tests( $tests ) {
unset( $tests['direct'] );
return $tests;
add_filter( 'site_status_tests', 'tc_remove_direct_tests' );
function tc_remove_hcmenu() {
remove_submenu_page( 'tools.php', 'site-health.php' );
add_action( 'admin_menu', 'tc_remove_hcmenu' );
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment