Specify the condition of recording logs.
Description
The filter hook “ip-location-block-record-logs” can change the condition of recording logs depending on the situation.
Parameters
-
$record
(int) Type of recording (0:none 1:blocked 2:passed 3:unauth 4:auth 5:all). -
$hook
(string)'comment'
,'xmlrpc'
,'login'
,'admin'
or'public'
. -
$validate
(array) An associative array for validation result.
Use case
The following code snippet in your theme’s functions.php
can bypass WP-ZEP validation against the direct request to /wp-content/plugins/my-plugin/…/*.php
.
NOTE: When you select
"mu-plugins" (ip-location-block-mu.php)
as Validation timing , you should put your code snippet into drop-in.php
in Geolocation API folder instead of functions.php
. See My custom functions in “functions.php” doesn’t work. in FAQ for detail. Since
0.2.1.1