WordPress at a glance
function is not described

unregister_default_headers() WP 3.0.0

Unregister default headers.

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

  • See: register_default_headers()
  • Global. Array. $_wp_default_headers

No Hooks.

Return

true/false/null. A single header returns true on success, false on failure. There is currently no return value for multiple headers.

Usage

unregister_default_headers( $header );
$header(string/array) (required)
The header string id (key of array) to remove, or an array thereof.

Code of unregister default headers: wp-includes/theme.php VER 5.1.1

<?php
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;
	}
}