W3cubDocs

/WordPress

Cookie::__toString()

Get the cookie value

Description

Attributes and other data can be accessed via methods.

Source

public function __toString() {
	return $this->value;
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wporg-requests-cookie/__tostring