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.


Top ↑

Source

File: wp-includes/class-wp.php

View on Trac



Top ↑

Changelog

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