http_response filter-hook . WP 2.9.0
Filters the HTTP API response immediately before the response is returned.
Usage
add_filter( 'http_response', 'filter_function_name_2593', 10, 3 ); function filter_function_name_2593( $response, $parsed_args, $url ){ // filter... return $response; }
- $response(array)
- HTTP response.
- $parsed_args(array)
- HTTP request arguments.
- $url(string)
- The request URL.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
http_response
http_response
wp-includes/class-http.php 446
return apply_filters( 'http_response', $response, $parsed_args, $url );
wp-includes/class-http.php 590
return apply_filters( 'http_response', $response, $args, $url );