Created
July 10, 2019 19:08
-
-
Save itzmekhokan/7d3acb9103ad6b73b72cb7a55425828d to your computer and use it in GitHub Desktop.
Disable site health test from wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function remove_site_health_test( $tests ) { | |
if( isset( $tests['direct']['php_version'] ) unset( $tests['direct']['php_version'] ); // remove php version check | |
if( isset( $tests['async']['background_updates'] ) unset( $tests['async']['background_updates'] ); // remove background update | |
return $tests; | |
} | |
add_filter( 'site_status_tests', 'remove_site_health_test' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment