Where am I? — Testing the “GeoIP Location” WordPress plugin

0

European map, credit: Calvin Hanson on Unsplash
This is a test of the GeoIP Detection WordPress plugin by Yellow Tree. Its FAQ page on GitHub is very informative.

This page provides the location of you, the reader of this post, based on your IP address, parsed into various components, such as time zone, continent, country, state (in the US) or other “most-specific subdivision,” and city—or, alternatively, as latitude/longitude.

My motivation for installing this plugin was to avoid unnecessarily displaying an irksome GDPR Cookie Banner to visitors from non-EU countries.

Here are the results for your IP address:1FYI, I relied upon the WP-GeSHi-Highlight plugin to be able to render verbatim the shortcodes in the following code.

  • Time zone: America/New_York
  • Continent: NA
  • Longitude: -77.4728
  • Latitude: 39.0481
  • Country: United States
  • Country code: US
  • Most-specific subdivision: Virginia
  • Code for the most-specific subdivision: VA
  • City: Ashburn


The above output is generated by the following code in this WordPress post:


<ul>
 	<li>Time zone: [geoip_detect2 property="location.timeZone"]</li>
 	<li>Continent: [geoip_detect2 property="continent.code"]</li>
 	<li>Longitude: [geoip_detect2 property="location.longitude"]</li>
 	<li>Latitude: [geoip_detect2 property="location.latitude"]</li>
 	<li>Country: [geoip_detect2 property="country"]</li>
 	<li>Country code: [geoip_detect2 property="country.isoCode"]</li>
 	<li>Most-specific subdivision: [geoip_detect2 property="mostSpecificSubdivision"]</li>
 	<li>Code for the most-specific subdivision: [geoip_detect2 property="mostSpecificSubdivision.isoCode"]</li>
 	<li>City: [geoip_detect2 property="city"]</li>
</ul>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.