The HTTP status code when the blocking occurs.
The filter hook “ip-location-block-xxxxx-status” where
xxxxx is one of
public assigns the HTTP status code when the blocking occurs.
(int) “Response code” in “Validation rule settings” section.
The following code in your
functions.php can hide your login page.
The status code
404 leads to the “404 page” in your theme. For example, the following picture shows the page of Twenty Twelve.
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