status_header filter-hook . WP 2.2.0
Filters an HTTP status header.
Usage
add_filter( 'status_header', 'filter_function_name_1422', 10, 4 ); function filter_function_name_1422( $status_header, $code, $description, $protocol ){ // filter... return $status_header; }
- $status_header(string)
- HTTP status header.
- $code(int)
- HTTP status code.
- $description(string)
- Description for the status code.
- $protocol(string)
- Server protocol.
Changelog
Since 2.2.0 | Introduced. |
Where the hook is called
status_header
wp-includes/functions.php 1426
$status_header = apply_filters( 'status_header', $status_header, $code, $description, $protocol );