Add filter to disable redirects
-
Trying to programmatically disable a few paths. A couple lines in the redirect() method would allow plugin developers to add a filter so redirection would return false. Something like:
if (apply_filters('ip2location_redirection_disabled', true)) { return; }Other idea for this would be to set an option to whitelist pages, similar to the IP whitelist:
if (get_option('ip2location_redirection_ip_whitelist')) { $records = explode(';', get_option('ip2location_redirection_ip_whitelist')); //... }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Add filter to disable redirects’ is closed to new replies.