Core Function
View Source on Trac ↗ status_header()
status_header( mixed $code, mixed $description = '' ) Sets HTTP status header.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $code int | HTTP status code. Required |
| string | $description Optional. A custom description for the HTTP status. Defaults to the result of get_status_header_desc() for the given code. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.0.0
Source File
wp-includes/functions.php
Advertisement