http_response WordPress Filter Hook

The http_response WordPress hook is called after the HTTP response is sent to the browser. This hook is useful for performing any final actions before the page is displayed, such as logging or outputting data.

apply_filters( 'http_response', array $response, array $parsed_args, string $url ) #

Filters a successful HTTP API response immediately before the response is returned.


Parameters

$response

(array)HTTP response.

$parsed_args

(array)HTTP request arguments.

$url

(string)The request URL.


Top ↑

Source

File: wp-includes/class-wp-http.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.