Skip to content

Instantly share code, notes, and snippets.

@paulgoodchild
Created March 8, 2024 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgoodchild/13349ff92bd74c8d3df0227b0410983e to your computer and use it in GitHub Desktop.
Save paulgoodchild/13349ff92bd74c8d3df0227b0410983e to your computer and use it in GitHub Desktop.
Shield Security: Prevent loading of WP Site Health Security Components
<?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