wp_remote_retrieve_header
wp_remote_retrieve_header ( $response, $header )
Parameters:- (array|WP_Error) response HTTP response.
- (string) header Header name to retrieve value from.
Returns:- (array|string) The header(s) value(s). Array if multiple headers with the same name are retrieved. Empty string if incorrect parameter given, or if the header doesn't exist.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Retrieves a single header by name from the raw response.