WordPress at a glance
function is not described

Requests_Cookie::format_for_header() public WP 1.0

Format a cookie for a Cookie header

This is used when sending cookies to a server.

{} It's a method of the class: Requests_Cookie{}

No Hooks.


String. Cookie formatted for Cookie header


$Requests_Cookie = new Requests_Cookie();

Code of Requests_Cookie::format_for_header() WP 5.7.2

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