Uses
Uses | Description |
---|---|
wp-includes/http.php: wp_remote_retrieve_cookie() | Retrieve a single cookie by name from the raw response. |
Retrieve a single cookie’s value by name from the raw response.
(array|WP_Error) (Required) HTTP response.
(string) (Required) The name of the cookie to retrieve.
(string) The value of the cookie. Empty string if the cookie isn't present in the response.
File: wp-includes/http.php
function wp_remote_retrieve_cookie_value( $response, $name ) { $cookie = wp_remote_retrieve_cookie( $response, $name ); if ( ! is_a( $cookie, 'WP_Http_Cookie' ) ) { return ''; } return $cookie->value; }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_remote_retrieve_cookie_value