WordPress plugin intelligence profile

Geo IP Library

Provides simple geo ip country location features for Wordpress.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.8
Current version0.9.7
WordPress coverageTested up to WordPress 4.8
Minimum stackWP 4.3 · PHP 5.3
Directory statusactive
Last directory update18 Oct 20179y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Geo IP Library version 0.9.7 as active, updated 9y ago and tested up to WordPress 4.8.

Overview

About this plugin

Geo IP Library enables sort of simple but powerful functions in order to provide geo ip country features on WordPress. Main features so far until now:

  • Static PHP functions to be used in plugins and themes.
  • Shortcodes to display different contents by country or a bunch of countries.
  • Update management of local library from its source.

About library

This plugin uses a third-party PHP single library file which does not have external dependencies, so it comes within the plugin and works locally. It is intended for anyone who don’t want to use (or depend of) web services or either implement native PHP GeoIP extensions.

The library was made by Chirag Mehta.

Library update

Since working with a local library can be a time-saver, its data may get deprecated sometime in the future. This plugin allow update your local library from its remote source. To do that, go to admin dashboard (specifically under Tools menu), where the library can be updated without any risk.

Updating restriction

The library can be updated every 72 hours. It is not really necessary a minor interval.

How to use

Shortcode

Display different content for each country (or countries) within posts and pages by using [geo-ip] or [geo] tags. To do magic, see the following syntaxes:

/** * INCLUDE PROPERTY * Display content to a specific country or many countries */

// [geo-ip] tag [geo-ip include="{2-digits country code [, other countries]}"]{plain text, HTML and/or shortcodes}[/geo-ip]

// [geo] tag [geo include="{2-digits country code [, other countries]}"]{plain text, HTML and/or shortcodes}[/geo]

/** * EXCLUDE PROPERTY * Display content to all countries but... */

// [geo-ip] tag [geo-ip exclude="{2-digits country code [, other countries]}"]{plain text, HTML and/or shortcodes}[/geo-ip]

// [geo] tag [geo exclude="{2-digits country code [, other countries]}"]{plain text, HTML and/or shortcodes}[/geo]

  • [geo] tag is only available if no other plugin is using it (since it’s a pretty common word).
  • include and exclude cannot be used together due to their purpose.

Coding

The following static functions can be used anywhere along GeoIPLibrary class:

/** Returns the current client's IP address as STRING. * It bypasses proxies and/or forwarding. * Returns FALSE if it fails.

*/ GeoIPLibrary::get_client_address()

/** Returns the current client's ISO 3166-1 alpha-2 country code * or the specified at $ip parameter as STRING. * Returns FALSE if it fails. */ GeoIPLibrary::get_client_country_code(string $ip = '')

/** Returns the current client's country name * or the specified at $ip parameter as STRING. * Returns FALSE if it fails. */ GeoIPLibrary::get_client_country_name(string $ip = '')<h3>Contributions</h3>Geo IP Library is still in development, but currently stable.

You can contribute with new ideas, coding improves/issues and even grammar/spelling check (english is not my mother language). com/ricardo-miguel/geo-ip-library/issues).

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • custom content
  • geo location
  • geo ip
  • library
  • standalone
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.8
Minimum requirementsWordPress 4.3 · PHP 5.3
Update activity18 Oct 20179y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.