Code-Snippets-Functions/Execute a function on a child site/WordPress/remove-background-updates-wp-core-site-health-test.txt

5 lines
186 B
Text

function myhost_remove_update_check( $tests ) {
unset( $tests['async']['background_updates'] );
return $tests;
}
add_filter( 'site_status_tests', 'myhost_remove_update_check' );