Created
March 8, 2024 11:59
-
-
Save paulgoodchild/13349ff92bd74c8d3df0227b0410983e to your computer and use it in GitHub Desktop.
Shield Security: Prevent loading of WP Site Health Security Components
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
<?php declare( strict_types=1 ); | |
/** | |
* Be sure to place this in your theme's functions.php or if you're including | |
* it within a plugin, ensure that it runs before WP's 'init' action has executed. | |
* | |
* This will prevent Shield's Site Health components from executing and populating | |
* WP Site Health area with Security recommendations. | |
*/ | |
add_filter( 'shield/can_run_site_health_security', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment