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