WP_Http_Cookie::getFullHeader() WordPress Method
The WP_Http_Cookie::getFullHeader() method is used to get the full header for a given cookie. This is useful for getting information about the cookie, such as its name, value, and expiration date.
WP_Http_Cookie::getFullHeader() #
Retrieve cookie header for usage in the rest of the WordPress HTTP API.
Return
(string)
Source
File: wp-includes/class-wp-http-cookie.php
public function getFullHeader() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid return 'Cookie: ' . $this->getHeaderValue(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |