WP_REST_Server::remove_header( string $key )

In this article

Removes an HTTP header from the current response.

Parameters

$keystringrequired
Header key.

Source

public function remove_header( $key ) {
	header_remove( $key );
}

Changelog

VersionDescription
4.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.