WP_HTTP_Requests_Response::header

SummerySummery

Sets a single HTTP header.

Syntax

WP_HTTP_Requests_Response::header( string $key, string $value, bool $replace = true )

ParametersParameters

$key

(string) (Required) Header name.

$value

(string) (Required) Header value.

$replace

(bool) (Optional) Whether to replace an existing header of the same name.

Default value: true

SourceSource

File: wp-includes/class-wp-http-requests-response.php


			

ChangelogChangelog

Changelog
Version Description
4.6.0 Introduced.
Scroll to Top