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.8.7.0

apply_filters('woocommerce_geolocation_ip_lookup_apis') is found 1 times:

  • /includes/class-wc-geolocation.php line 110
    		}
    
    		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(