send_headers WordPress Action Hook

The send_headers hook allows you to modify the HTTP headers before they are sent to the browser. This can be useful for setting custom headers, such as cache control or security headers.

do_action_ref_array( 'send_headers', WP $wp ) #

Fires once the requested HTTP headers for caching, content type, etc. have been sent.


Parameters

$wp

(WP)Current WordPress environment instance (passed by reference).


Top ↑

More Information

This action hook is used to add additional headers to the outgoing HTTP response.


Top ↑

Source

File: wp-includes/class-wp.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.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.