The message of the reason when the blocking occurs.
The filter hook “ip-location-block-xxxxx-reason” where
xxxxx is one of
public assigns the human readable message according to the “Response code” on “Validation rule settings” when the blocking occurs.
The following picture shows a human readble message when a blocking occurs.
You can change the message “Forbidden” as follows:
NOTE: When you select
"mu-plugins" (ip-location-block-mu.php)as Validation timing , you should put your code snippet into
drop-in.phpin Geolocation API folder instead of
functions.php. See My custom functions in “functions.php” doesn’t work. in FAQ for detail.
Leave a Reply