status_header WordPress Filter Hook

The status_header hook is a great way to modify the HTTP status code of a WordPress request. This can be useful for things like 404 pages, or redirecting pages that have been moved.

apply_filters( 'status_header', string $status_header, int $code, string $description, string $protocol ) #

Filters an HTTP status header.


Parameters

$status_header

(string)HTTP status header.

$code

(int)HTTP status code.

$description

(string)Description for the status code.

$protocol

(string)Server protocol.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

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

Show More
Show More