woocommerce_geolocation_ip_lookup_api_response

woocommerce_geolocation_ip_lookup_api_response

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_geolocation_ip_lookup_api_response') is found 1 times:

  • /includes/class-wc-geolocation.php line 129
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
                )
            );
     
            if ( ! is_wp_error( $response ) && rest_is_ip_address( $response['body'] ) ) {
                $external_ip_address = apply_filters( 'woocommerce_geolocation_ip_lookup_api_response', wc_clean( $response['body'] ), $service_name );
                break;
            }
        }
     
        set_transient( $transient_name, $external_ip_address, DAY_IN_SECONDS );
    }