WP_HTTP_Response::header

Advertisement

Summery Summery

Sets a single HTTP header.

Syntax Syntax

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

Parameters Parameters

$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

Source Source

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.