Core Function
View Source on Trac ↗ wp_remote_retrieve_cookies()
wp_remote_retrieve_cookies( mixed $response ) Retrieves only the cookies from the raw response.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (array | | WP_Error) $response HTTP response. Required |
Return Value
(WP_Http_Cookie[])
WP_Http_Cookie[] An array of `WP_Http_Cookie` objects from the response.
Empty array if there are none, or the response is a WP_Error.
Function Information
Since Version
4.4.0
Source File
wp-includes/http.php
Advertisement