Uses
Uses | Description |
---|---|
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::send_header() | Sends an HTTP header. |
Sends multiple HTTP headers.
(array) (Required) Map of header name to header value.
File: wp-includes/rest-api/class-wp-rest-server.php
public function send_headers( $headers ) { foreach ( $headers as $key => $value ) { $this->send_header( $key, $value ); } }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_server/send_headers