woocommerce_geolocation_geoip_response_(service_name) хук-фильтрWC 1.0

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

add_filter( 'woocommerce_geolocation_geoip_response_(service_name)', 'wp_kama_woocommerce_geolocation_geoip_response_service_name_filter', 10, 2 );

/**
 * Function for `woocommerce_geolocation_geoip_response_(service_name)` filter-hook.
 * 
 * @param  $string        
 * @param  $response_body 
 *
 * @return 
 */
function wp_kama_woocommerce_geolocation_geoip_response_service_name_filter( $string, $response_body ){

	// filter...
	return $string;
}
$string
-
$response_body
-

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

WC_Geolocation::geolocate_via_api()
woocommerce_geolocation_geoip_response_(service_name)
woocommerce/includes/class-wc-geolocation.php 304
$country_code = apply_filters( 'woocommerce_geolocation_geoip_response_' . $service_name, '', $response['body'] );

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

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