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: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Retrieves a single cookie by name from the raw response.