woocommerce_geolocation_geoip_response_ . $service_name, , $response[body]

woocommerce_geolocation_geoip_response_ . $service_name, , $response[body]

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_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 ) {