wp_remote_retrieve_header


wp_remote_retrieve_header ( $response, $header )

Parameters:
  • (array) $response
  • (string) $header Header name to retrieve value from.
Returns:
  • (string) The header value. Empty string on if incorrect parameter given, or if the header doesn't exist.
Defined at:

Description

Retrieve 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