Skip to content

Instantly share code, notes, and snippets.

@timersys
Last active May 16, 2018 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timersys/084f14fb980de98ffba1 to your computer and use it in GitHub Desktop.
Save timersys/084f14fb980de98ffba1 to your computer and use it in GitHub Desktop.
Change geot IP for local development
<?php
/**
* Geotargeting Plugin. https://wordpress.org/plugins/geotargeting/
* Filter IP if you are for example in local host
*/
add_filter( 'geot/user_ip', 'geot_ip');
function geot_ip( $ip ) {
return '192.192.192.192';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment