wp_remote_retrieve_cookie


wp_remote_retrieve_cookie ( $response, $name )

Parameters:
  • (array|WP_Error) response HTTP response.
  • (string) name The name of the cookie to retrieve.
Returns:
  • (WP_Http_Cookie|string) The `WP_Http_Cookie` object, or empty string if the cookie is not present in the response.
Defined at:

Description

Retrieves a single cookie by name from the raw response.

Related Functions

wp_remote_retrieve_cookies, wp_remote_retrieve_cookie_value, wp_remote_retrieve_body, wp_remote_retrieve_header, wp_remote_retrieve_headers

Top Google Results

User discussions

wpseek mobile