Skip to content

ip-location-block-ip2location-zip-ipv4


Looking for current setup instructions?

The Codex is preserved as a legacy and developer reference. The current interface is documented in the new guides.

Open current guide

The URI to IP2Location LITE database for IPv4.

Description

The filter hook “ip-location-block-ip2location-zip-ipv4” assigns the URI to Free IP2Location LITE database file for IPv4 which can be downloaded by ZIP format.

Parameters

  • $url
    (string) https://download.ip2location.com/lite/IP2LOCATION-LITE-DB1.BIN.ZIP
NOTE: When you select "mu-plugins" (ip-location-block-mu.php) as Validation timing , you should put your code snippet into drop-in.php in Geolocation API folder instead of functions.php. See My custom functions in “functions.php” doesn’t work. in FAQ for detail.

Use case

Currently, this plugin supports only DB1.LITE database.

Since

0.2.2.1

All Legacy Codex entries