Skip to content

Instantly share code, notes, and snippets.

@timersys
Last active May 16, 2018
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