WP_REST_Server::remove_header( string $key )

Removes an HTTP header from the current response.

Parameters Parameters


(string) (Required) Header key.

Top ↑

Source Source

File: wp-includes/rest-api/class-wp-rest-server.php

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

Top ↑

Changelog Changelog

Version Description
4.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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