Advertisements

unregister_default_headers

Definition:
function unregister_default_headers( $header ) {}

Unregister default headers.
This function must be called after register_default_headers() has already added the header you want to remove.

Parameters

  • string|array $header: The header string id (key of array) to remove, or an array thereof.

Return values

returns:on success, false on failure.

Source code

function unregister_default_headers( $header ) {

	global $_wp_default_headers;

	if ( is_array( $header ) ) {

		array_map( 'unregister_default_headers', $header );

	} elseif ( isset( $_wp_default_headers[ $header ] ) ) {

		unset( $_wp_default_headers[ $header ] );

		return true;

	} else {

		return false;

	}

}

3131

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: