woocommerce_maxmind_geolocation_database_service
Supports overriding the database service to be used.
Использование
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
- -
Список изменений
С версии 3.9.0 | Введена. |
Где вызывается хук
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 );