wp_remote_retrieve_headers

SummerySummery

Retrieve only the headers from the raw response.

Syntax

wp_remote_retrieve_headers( array|WP_Error $response )

ParametersParameters

$response

(array|WP_Error) (Required) HTTP response.

ReturnReturn

(array|Requests_Utility_CaseInsensitiveDictionary) The headers of the response. Empty array if incorrect parameter given.

SourceSource

File: wp-includes/http.php


			

ChangelogChangelog

Changelog
Version Description
4.6.0 Return value changed from an array to an Requests_Utility_CaseInsensitiveDictionary instance.
2.7.0 Introduced.

See alsoSee also

Scroll to Top