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.


  • 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;




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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: