Last active
April 27, 2021 21:09
-
-
Save ara303/e6d7cff5043431ed2e519893ad9434f8 to your computer and use it in GitHub Desktop.
Remove the "you need a default theme" WP Site Health check, because it's unnecessary and annoying if you run one default theme that you *do* actively maintain
This file contains hidden or 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
function YOURPREFIX_remove_default_theme_site_health( $tests ) { | |
unset( $tests['direct']['theme_version'] ); | |
return $tests; | |
} | |
add_filter( 'site_status_tests', 'YOURPREFIX_remove_default_theme_site_health' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment