Skip to content

Instantly share code, notes, and snippets.

@timersys
Last active May 16, 2018 14:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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