WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/status header

Description

Set HTTP status header.

Usage

<?php status_header$header ?>

Parameters

$header
(integer) (required) HTTP status code
Default: None

Return Values

(null) 
Does not return anything.

Examples

Notes

  • Uses: apply_filters() Calls 'status_header' on status header string, HTTP HTTP code, HTTP code description, and protocol string as separate parameters.

Change Log

Since: 2.0.0

Source File

status_header() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.