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:

Description

Retrieves a single header by name from the raw response.

Related Functions

wp_remote_retrieve_headers, wp_remote_retrieve_body, wp_remote_retrieve_cookie, wp_remote_retrieve_cookie_value, wp_remote_retrieve_cookies

Top Google Results

User discussions

wpseek mobile