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