On this page
apply_filters( 'wp_headers', string[] $headers, WP $wp )
Filters the HTTP headers before they’re sent to the browser.
Parameters
$headersstring[]-
Associative array of headers to be sent.
$wpWP-
Current WordPress environment instance.
Source
File: wp-includes/class-wp.php. View all references
$headers = apply_filters( 'wp_headers', $headers, $this );
Related
Used By
| Used By | Description |
|---|---|
| WP::send_headers() wp-includes/class-wp.php | Sends additional HTTP headers for caching, content type, etc. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_headers