do_action( 'http_api_debug', array|WP_Error $response, string $context, string $class, array $r, string $url )

Fires after an HTTP API response is received and before the response is returned.


Parameters

$response

(array|WP_Error) HTTP response or WP_Error object.

$context

(string) Context under which the hook is fired.

$class

(string) HTTP transport used.

$r

(array) HTTP request arguments.

$url

(string) The request URL.


Source

File: wp-includes/class-http.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.8.0 Introduced.