Skip to main content

DB location

Geolocation database file (.mmdb) path on your server. Useful if you want to provide your own IP geolocation library.

\add_filter('es_forms_geolocation_db_location', [$this, 'getGeolocationDbLocation']);

/**
* Provide custom geolocation db location.
*
* This filter provides you with the ability to provide custom database location for geolocation.
*
* @return string
*/
public function getGeolocationDbLocation(): string
{
return __DIR__ . \DIRECTORY_SEPARATOR . 'geoip.mmdb';
}