wp_remote_retrieve_header

SummerySummery

Retrieve a single header by name from the raw response.

Syntax

wp_remote_retrieve_header( array|WP_Error $response, string $header )

ParametersParameters

$response

(array|WP_Error) (Required) HTTP response.

$header

(string) (Required) Header name to retrieve value from.

ReturnReturn

(string) The header value. Empty string on if incorrect parameter given, or if the header doesn't exist.

SourceSource

File: wp-includes/http.php


			

ChangelogChangelog

Changelog
Version Description
2.7.0 Introduced.
Scroll to Top