WPDev.one
Core Function
View Source on Trac ↗

wp_remote_retrieve_headers()

wp_remote_retrieve_headers( mixed $response )

Retrieves only the headers from the raw response.

Parameters 1 required

Name / Type Description
(array

| WP_Error) $response HTTP response.

Required

Return Value

((\WpOrg\Requests\Utility\CaseInsensitiveDictionary)
(\WpOrg\Requests\Utility\CaseInsensitiveDictionary | array) The headers of the response, or empty array if incorrect parameter given.

Function Information

Since Version
2.7.0
Source File
wp-includes/http.php
Advertisement