Filters the whitelist of hosts to redirect to.
The filter hook “allowed_redirect_hosts” is to prevent redirection to external sites. It’s a countermeasure especially against the infection of option tables in MySQL database by SQL injection.
(array) An array of allowed hosts.
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