wp_remote_retrieve_cookie


wp_remote_retrieve_cookie ( $response, $name )

Parameters:
  • (array) $response HTTP response.
  • (string) $name The name of the cookie to retrieve.
Returns:
  • (WP_Http_Cookie|string) The `WP_Http_Cookie` object. Empty string if the cookie isn't present in the response.
Defined at:

Description

Retrieve 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