Skip to content

Instantly share code, notes, and snippets.

@barbwiredmedia
Last active April 15, 2016 22:20
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 barbwiredmedia/f54a4d6d5a654c920550335d432d10a6 to your computer and use it in GitHub Desktop.
Save barbwiredmedia/f54a4d6d5a654c920550335d432d10a6 to your computer and use it in GitHub Desktop.
WP Engine GEO IP
Country – $geoip_country_code
State – $geoip_region
City – $geoip_city
[geoip] => 1
[geoip-rules] => Array
(
[0] => Array
(
[url] => ^/*
[entities] => $geoip_region:$geoip_city:
//$geoip_city and $geoip_region are enabled for state option
[geoip-content region="NJ"] Hello New Jersey! [/geoip-content]
<p><strong>YOUR LOCATION: Continent: [geoip-continent] Country: [geoip-country] City: [geoip-city] Region: [geoip-region] Postal Code: [geoip-postalcode] Latitude: [geoip-latitude] Longitutde: [geoip-longitude] Location: [geoip-location]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment