Snoopy::setcookies
Method of the class: Snoopy{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Snoopy = new Snoopy(); $Snoopy->setcookies();
Snoopy::setcookies() Snoopy::setcookies code WP 6.9.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]);
}
}