On this page
apply_filters( 'http_response', array $response, array $parsed_args, string $url )
Filters a successful HTTP API response immediately before the response is returned.
Parameters
$responsearray-
HTTP response.
$parsed_argsarray-
HTTP request arguments.
$urlstring-
The request URL.
Source
File: wp-includes/class-wp-http.php. View all references
return apply_filters( 'http_response', $response, $parsed_args, $url );
Related
Used By
| Used By | Description |
|---|---|
| WP_Http::_dispatch_request() wp-includes/class-wp-http.php | Dispatches a HTTP request to a supporting transport. |
| WP_Http::request() wp-includes/class-wp-http.php | Send an HTTP request to a URI. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/http_response