This file contains 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 ); | |
/** | |
* Use this filter to tell Shield to block a request. | |
* | |
* By default, Shield will block requests solely based on the IP reputation for that site. | |
* | |
* With this filter, you can change these criteria. | |
* | |
* In this example we want to block all access to the WP admin and WP login areas and |
This file contains 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 ); | |
/** | |
* Easy Digital Downloads will send license expiration notices for any licenses, even if they | |
* have been refunded. This is not ideal. | |
* | |
* This filter will prevent such notices being sent if any payments associated with this | |
* license have been refunded. | |
* | |
* This may not be applicable in cases where you EDD store supports multiple products in |
This file contains 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 ); | |
use FernleafSystems\Wordpress\Plugin\Shield\Modules\HackGuard\Scan\Controller; | |
/** | |
* Launching on-demand scans for Shield Security can be done using the function outlined below. | |
* It requires a single array parameter that contains the so-called "slugs" of the respective scans. | |
* | |
* Shield currently has 3 distinct scan types, namely: | |
* - AFS: file scanner, (WordPress, plugin, themes, malware scan) |
This file contains 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' ); |
OlderNewer