WooCommerce Code Reference

WC_Integration_MaxMind_Database_Service

The service class responsible for interacting with MaxMind databases.

Tags
since
3.9.0

Table of Contents

DATABASE  = 'GeoLite2-Country'
The name of the MaxMind database to utilize.
DATABASE_EXTENSION  = '.mmdb'
The extension for the MaxMind database.
$database_prefix  : string
A prefix for the MaxMind database filename.
__construct()  : mixed
WC_Integration_MaxMind_Database_Service constructor.
download_database()  : string|WP_Error
Fetches the database from the MaxMind service.
get_database_path()  : string
Fetches the path that the database should be stored.
get_iso_country_code_for_ip()  : string
Fetches the ISO country code associated with an IP address.

Constants

Properties

Methods