WordPress at Your Fingertips
function is not described

Snoopy::setcookies() public WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$Snoopy = new Snoopy();
$Snoopy->setcookies();

Code of Snoopy::setcookies() WP 5.8.3

function setcookies()
{
	for($x=0; $x<count($this->headers); $x++)
	{
	if(preg_match('/^set-cookie:[\s]+([^=]+)=([^;]+)/i', $this->headers[$x],$match))
		$this->cookies[$match[1]] = urldecode($match[2]);
	}
}