WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by IP2Location v2.10.1

IP2Location Variables

Library helps you to create location based website or content easily by integrating geolocation solution to your site. It supports both IPv4 and IPv6 …

IP2Location Variables

The facts

Rating
2.3★ from 3
Active installs
100+
Price
Free
Last updated
21 Aug 2026
Added
Sep 2013
Requires WP
2.0
Tested up to
WP 7.1
Downloads
13,124

Our analysis

AI-assisted

IP2Location Variables is a WordPress plugin that allows you to find the geographic location of website visitors based on their IP addresses. It provides various types of geolocation information, including country, region, city, latitude, longitude, and more. This plugin can be useful for creating geo-targeted marketing campaigns and displaying geo-data in posts.

The plugin supports both IPv4 and IPv6 addresses and can work with IP2Location's BIN data or their web service for geolocation queries. You can update the BIN data monthly through a wizard or manually download it for the most accurate results.

Best for: This plugin is suitable for website owners looking to implement geolocation features for marketing or content purposes.

What it does well

  • Provides detailed geolocation information
  • Supports both IPv4 and IPv6 addresses
  • Can be integrated into posts for geo-data display
  • Allows for geo-targeted marketing campaigns
  • Easy setup with BIN data or web service options

Where it falls short

  • Limited user ratings indicate potential issues
  • May require manual updates for BIN data
  • No additional features or support details provided

Verdict

IP2Location Variables offers a range of geolocation data that can be beneficial for targeted marketing. However, its low rating suggests that users should proceed with caution.

From the developer

IP2Location's own description of IP2Location Variables, lightly tidied.

This useful library makes it easy to conveniently find website visitors location and provides geographic information based on IP address lookup. It also can be used to display geo-data info in posts for specific locations and to help you create geo-target marketing campaigns.

It is a library derived from https://www.ip2location.com/developers/php but works as a WordPress plugin to simplify the setup and ease the integration work. It supports both the IPv4 and IPv6 address.

Below are the geolocation information you can retrieve from this library:
* Country code
* Country name
* Country flag
* Region name
* City name
* Latitude and longitude
* ZIP code
* ISP
* Domain name
* Time zone
* Net speed
* IDD code
* Area code
* Weather station code & name
* MNC, MCC, mobile carrier name
* Elevation
* Usage type
* Address type
* Category
* District
* AS Number
* AS Name
* AS Domain
* AS Usage Type
* AS CIDR

This plugin supports both IP2Location IP geolocation BIN data and web service for geolocation queries. If you are using the BIN data, you can update the BIN data every month by using the wizard on the settings page for the most accurate result. Alternatively, you can also manually download and update the BIN data file using the below links:

BIN file download: IP2Location Commercial database | IP2Location LITE database (free edition)

If you are using the IP2Location IP geolocation web service, please visit IP2Location Web Service for details.

Usage

Call the function ip2location_get_vars() in any pages, plugins, or themes to retrieve IP2Location variables. The variables are returned in object. To use lookup for a custom IP, use ip2location_get_vars(‘IP_ADDRESS’);

More Information

Please visit us at https://www.ip2location.com

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for maps and locations.

Meta Box

Meta Box plugin is a powerful, professional developer toolkit to create custom meta boxes and custom fields fo...

Free 500k+ installs 4.8★ (165)
WP Go Maps

The easiest to use WordPress map plugin! Create a custom map, map block, store locator or map widget with high...

Free 300k+ installs 4.8★ (3,035)
SlimStat Analytics

Real-time WordPress analytics that stay on your own server: pageviews, outbound links, WooCommerce funnels, al...

Free 70k+ installs 4.8★ (817)
Open User Map

Create custom interactive maps with free Leaflet-based styles, no Google Maps API key, frontend marker submiss...

Free 10k+ installs 5★ (67)
WP Store Locator

An easy to use location management system that enables users to search for nearby physical stores.

Free 50k+ installs 4.8★ (312)
Leaflet Map

Interactive maps and markers on your posts and pages with simple shortcodes.

Free 30k+ installs 4.9★ (58)