W3cubDocs

/WordPress

Requests_Cookie::__toString()

Get the cookie value

Description

Attributes and other data can be accessed via methods.

Source

File: wp-includes/Requests/Cookie.php

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

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