Last active
April 15, 2016 22:20
-
-
Save barbwiredmedia/f54a4d6d5a654c920550335d432d10a6 to your computer and use it in GitHub Desktop.
WP Engine GEO IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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