woocommerce_geolocation_geoip_response_(service_name) filter-hookWC 1.0

Usage

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
-

Where the hook is called

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'] );

Where the hook is used in WooCommerce

Usage not found.