wp_remote_retrieve_cookie_value

SummerySummery

Retrieve a single cookie’s value by name from the raw response.

Syntax

wp_remote_retrieve_cookie_value( array|WP_Error $response, string $name )

ParametersParameters

$response

(array|WP_Error) (Required) HTTP response.

$name

(string) (Required) The name of the cookie to retrieve.

ReturnReturn

(string) The value of the cookie. Empty string if the cookie isn't present in the response.

SourceSource

File: wp-includes/http.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top