wp_headers WordPress Filter Hook
The wp_headers hook gives developers access to the headers sent by the server for the current request. This hook is invoked after the headers have been sent.
apply_filters( 'wp_headers', string[] $headers , WP $wp ) #
Filters the HTTP headers before they’re sent to the browser.
Parameters
- $headers
(string[])Associative array of headers to be sent.
- $wp
(WP)Current WordPress environment instance.
Source
File: wp-includes/class-wp.php
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |