woocommerce_geolocation_geoip_response_ . $service_name, , $response[body]
woocommerce_geolocation_geoip_response_ . $service_name, , $response[body]
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_geolocation_geoip_response_ . $service_name, , $response[body]') is found 1 times:
- /includes/class-wc-geolocation.php line 323
$data = json_decode( $response['body'] ); $country_code = isset( $data->countryCode ) ? $data->countryCode : ''; // @codingStandardsIgnoreLine break; default: $country_code = apply_filters( 'woocommerce_geolocation_geoip_response_' . $service_name, '', $response['body'] ); break; } $country_code = sanitize_text_field( strtoupper( $country_code ) ); if ( $country_code ) {