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).
More Information
This action hook is used to add additional headers to the outgoing HTTP response.
Source
File: wp-includes/class-wp.php
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |