Summery Summery
Retrieve a single cookie’s value by name from the raw response.
Syntax Syntax
Parameters Parameters
- $response
-
(Required) HTTP response.
- $name
-
(Required) The name of the cookie to retrieve.
Return Return
(string) The value of the cookie. Empty string if the cookie isn't present in the response.
Source Source
File: wp-includes/http.php
if ( ! is_a( $cookie, 'WP_Http_Cookie' ) ) { return ''; } return $cookie->value; } /**
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |