WordPress at a glance
function is not described

Snoopy::setcookies() public WP 1.0

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

No Hooks.

Return

null. Null. Nothing.

Usage

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

Code of Snoopy::setcookies() WP 5.7.1

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