Filters the whitelist of hosts to redirect to.
Description
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.
Parameters
- $hosts
(array) An array of allowed hosts.
Use case
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
3.0.0