wp_remote_retrieve_cookie

Advertisement

Summery Summery

Retrieve a single cookie by name from the raw response.

Syntax Syntax

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

Parameters Parameters

$response

(array|WP_Error) (Required) HTTP response.

$name

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

Return Return

(WP_Http_Cookie|string) The WP_Http_Cookie object. Empty string if the cookie isn't present in the response.

Source Source

File: wp-includes/http.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.