woocommerce_maxmind_geolocation_database_service
Supports overriding the database service to be used.
Usage
add_filter( 'woocommerce_maxmind_geolocation_database_service', 'wp_kama_woocommerce_maxmind_geolocation_database_service_filter' );
/**
* Function for `woocommerce_maxmind_geolocation_database_service` filter-hook.
*
* @param $null
*
* @return
*/
function wp_kama_woocommerce_maxmind_geolocation_database_service_filter( $null ){
// filter...
return $null;
}
- $null
- -
Changelog
| Since 3.9.0 | Introduced. |
Where the hook is called
woocommerce_maxmind_geolocation_database_service
woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php 41
$this->database_service = apply_filters( 'woocommerce_maxmind_geolocation_database_service', null );