WP_REST_Server::send_headers( array $headers )

In this article

Sends multiple HTTP headers.

Parameters

$headersarrayrequired
Map of header name to header value.

Source

public function send_headers( $headers ) {
	foreach ( $headers as $key => $value ) {
		$this->send_header( $key, $value );
	}
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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