Un motore di ricerca WordPress per sviluppatori e autori di temi



unregister_default_headers ›

Da3.0.0
Deprecaton/a
unregister_default_headers ( $header )
Parametri:
  • (string|array) $header The header string id (key of array) to remove, or an array thereof.
    Richiesto:
Vedi:
Ritorna:
  • (bool|void) A single header returns true on success, false on failure. There is currently no return value for multiple headers.
Definito a:
Codex:

Unregister default headers.

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



Sorgenti

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