WpOrg\Requests

Cookie::format_for_header()publicWP 1.0

Format a cookie for a Cookie header

This is used when sending cookies to a server.

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

Хуков нет.

Возвращает

Строку. Cookie formatted for Cookie header

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

$Cookie = new Cookie();
$Cookie->format_for_header();

Код Cookie::format_for_header() WP 6.6.2

public function format_for_header() {
	return sprintf('%s=%s', $this->name, $this->value);
}