On this page
WP_HTTP_Response::set_headers( array $headers )
Sets all header values.
Parameters
$headersarray Required-
Map of header name to header value.
Source
File: wp-includes/class-wp-http-response.php. View all references
public function set_headers( $headers ) {
$this->headers = $headers;
}
Related
Used By
| Used By | Description |
|---|---|
| WP_HTTP_Response::__construct() wp-includes/class-wp-http-response.php | Constructor. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http_response/set_headers