woocommerce_geolocation_ip_lookup_apis

woocommerce_geolocation_ip_lookup_apis

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_geolocation_ip_lookup_apis') is found 1 times:

  • /includes/class-wc-geolocation.php line 114
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    }
     
    if ( false === $external_ip_address ) {
        $external_ip_address     = '0.0.0.0';
        $ip_lookup_services      = apply_filters( 'woocommerce_geolocation_ip_lookup_apis', self::$ip_lookup_apis );
        $ip_lookup_services_keys = array_keys( $ip_lookup_services );
        shuffle( $ip_lookup_services_keys );
     
        foreach ( $ip_lookup_services_keys as $service_name ) {
            $service_endpoint = $ip_lookup_services[ $service_name ];
            $response         = wp_safe_remote_get(