Advertisements

status_header

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

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: