W3cubDocs

/WordPress

Requests_Cookie::format_for_header()

Format a cookie for a Cookie header

Description

This is used when sending cookies to a server.

Return

(string) Cookie formatted for Cookie header

Source

File: wp-includes/Requests/Cookie.php

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

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_cookie/format_for_header