WP_Http_Cookie::getFullHeader()publicWP 2.8.0

Retrieve cookie header for usage in the rest of the WordPress HTTP API.

Method of the class: WP_Http_Cookie{}

No Hooks.

Return

String.

Usage

$WP_Http_Cookie = new WP_Http_Cookie();
$WP_Http_Cookie->getFullHeader();

Changelog

Since 2.8.0 Introduced.

WP_Http_Cookie::getFullHeader() code WP 6.4.3

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