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)


Top ↑

Source

File: wp-includes/class-wp-http-cookie.php

	public function getFullHeader() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
		return 'Cookie: ' . $this->getHeaderValue();
	}


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.