woocommerce_geolocation_ip_lookup_api_response
Usage
add_filter( 'woocommerce_geolocation_ip_lookup_api_response', 'wp_kama_woocommerce_geolocation_ip_lookup_api_response_filter', 10, 2 ); /** * Function for `woocommerce_geolocation_ip_lookup_api_response` filter-hook. * * @param $wc_clean * @param $service_name * * @return */ function wp_kama_woocommerce_geolocation_ip_lookup_api_response_filter( $wc_clean, $service_name ){ // filter... return $wc_clean; }
- $wc_clean
- -
- $service_name
- -
Where the hook is called
woocommerce_geolocation_ip_lookup_api_response
woocommerce/includes/class-wc-geolocation.php 125
$external_ip_address = apply_filters( 'woocommerce_geolocation_ip_lookup_api_response', wc_clean( $response['body'] ), $service_name );