W3cubDocs

/WordPress

apply_filters( 'wp_headers', string[] $headers, WP $this )

Filters the HTTP headers before they’re sent to the browser.

Parameters

$headers

(string[]) Associative array of headers to be sent.

$this

(WP) Current WordPress environment instance.

Source

File: wp-includes/class-wp.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_headers