woocommerce_geolocation_geoip_response_

woocommerce_geolocation_geoip_response_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_geolocation_geoip_response_') is found 1 times:

  • /includes/class-wc-geolocation.php line 317
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    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 ) {