woocommerce_maxmind_geolocation_database_service хук-фильтрWC 3.9.0

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 Введена.

Где вызывается хук

WC_Integration_MaxMind_Geolocation::__construct()
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 );

Где используется хук в WooCommerce

Использование не найдено.