We'll create fresh WordPress site with Geolocation IP Detection installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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 IPgeoip_detect2_get_info_from_current_ip($locales = array('en'), $options = array())
: Lookup Geo-Information of the current website usergeoip_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 webservergeoip_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).[geoip_detect2_show_if country="FR, DE" not_city="Berlin"]TEXT[/geoip_detect2_show_if]
. See Shortcode Documentation.geoip-province-HE
, geoip-country-DE
and geoip-continent-EU
.[geoip_detect2_countries mycountry]
[geoip_detect2_text_input city property:city lang:fr id:id class:class default:Paris]
[geoip_detect2_user_info]
[geoip_detect2_current_flag]
(see documentation)See Documentation for more info.
System Requirements: You will need at least PHP 7.2.5 . Also, if you use the plugin WooCommerce, you’ll need at least WooCommerce 3.9.0 .
GDPR: See Is this plugin GDPR-compliant?
This extension is “charity-ware”. If you are happy with it, please leave a tip for the benefit of this charity. (See FAQ for more infos.)
Here are other ways to contribute to the development of this plugin.
This product can provide GeoLite2 data created by MaxMind, available from http://www.maxmind.com.
geoip_detect2_get_info_from_current_ip()
return the same country, regardless of where you are visiting the site from? Disable caching a page that contains a shortcode or API call to geo-dependent functions.