Definition:
function status_header( $header ) {}
Set HTTP status header.
Parameters
- int $header: HTTP status code
Defined filters
- status_header
apply_filters( 'status_header', $status_header, $header, $text, $protocol )
Source code
function status_header( $header ) { $text = get_status_header_desc( $header ); if ( empty( $text ) ) return false; $protocol = $_SERVER["SERVER_PROTOCOL"]; if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) $protocol = 'HTTP/1.0'; $status_header = "$protocol $header $text"; if ( function_exists( 'apply_filters' ) ) $status_header = apply_filters( 'status_header', $status_header, $header, $text, $protocol ); return @header( $status_header, true, $header ); }
2911
No comments yet... Be the first to leave a reply!