WP_Http_Cookie::getFullHeader │ public │ WP 2.8.0

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

Метод класса: WP_Http_Cookie{}

Хуков нет.

Возвращает

string.

Использование

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

Список изменений

С версии 2.8.0 Введена.

Код WP_Http_Cookie::getFullHeader() WP 7.1.5

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