Snoopy::setcookies()publicWP 1.0

Method of the class: Snoopy{}

No Hooks.

Return

null. Nothing.

Usage

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

Snoopy::setcookies() code WP 6.1.1

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]);
	}
}