HTTP headers which this plugin sends when getting the remote content.
The filter hook “ip-location-block-headers” assigns the array of HTTP headers which is passed to
'timeout' => 5, 'user-agent' => 'WordPress/4.8, ip-location-block 3.1')
The following code snippet in your theme’s
functions.php can set timeout to 3 seconds.
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