Retrieving Geo-Information using one the Maxmind GeoIP2 databases.
Provides geographic information detected by an IP adress. This can be used in themes or other plugins, as a shortcode, or via CSS body classes. The city & country names are translated in different languages (supported languages).
geoip_detect2_get_info_from_ip($ip, $locales = array('en'), $options = array()): Lookup Geo-Information of the specified IP
geoip_detect2_get_info_from_current_ip($locales = array('en'), $options = array()): Lookup Geo-Information of the current website user
geoip_detect2_get_current_source_description(...): Return a human-readable label of the currently chosen source.
geoip_detect2_get_external_ip_adress(): Fetch the internet adress of the webserver
geoip_detect2_get_client_ip(): Get client IP (even if it is behind a reverse proxy)
[geoip_detect2 property="country.name" default="(country could not be detected)" lang="en"](where 'country.name' can be one of the other property names as well, and 'default' and 'lang' are optional).
See API Documentation for more info.
System Requirements: You will need at least PHP 5.3.1.
This product can provide GeoLite2 data created by MaxMind, available from http://www.maxmind.com.
Requires: 3.5 or higher
Compatible up to: 4.5.4
Last Updated: 6 months ago
Active Installs: 7,000+
1 of 2 support threads in the last two months have been marked resolved.
Got something to say? Need help?