Format a cookie for a Cookie header
This is used when sending cookies to a server.
public function format_for_header() {
return sprintf('%s=%s', $this->name, $this->value);
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wporg-requests-cookie/format_for_header