Skip to content

Instantly share code, notes, and snippets.

@wpjess
Created October 20, 2020 16:58
Show Gist options
  • Save wpjess/b7893761541092aa99340fad0731abc1 to your computer and use it in GitHub Desktop.
Save wpjess/b7893761541092aa99340fad0731abc1 to your computer and use it in GitHub Desktop.
Disable Site Health Notifications: PHP extentions and background updates
<?php
function prefix_remove_php_test( $tests ) {
unset( $tests['direct']['php_extensions'] );
unset( $tests['async']['background_updates'] );
return $tests;
}
add_filter( 'site_status_tests', 'prefix_remove_php_test' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment