Snoopy::fetchlinks()publicWP 1.0

Method of the class: Snoopy{}

No Hooks.

Return

null. Nothing (null).

Usage

$Snoopy = new Snoopy();
$Snoopy->fetchlinks( $URI );
$URI (required)
-

Snoopy::fetchlinks() code WP 6.6.2

function fetchlinks($URI)
{
	if ($this->fetch($URI))
	{
		if($this->lastredirectaddr)
			$URI = $this->lastredirectaddr;
		if(is_array($this->results))
		{
			for($x=0;$x<count($this->results);$x++)
				$this->results[$x] = $this->_striplinks($this->results[$x]);
		}
		else
			$this->results = $this->_striplinks($this->results);

		if($this->expandlinks)
			$this->results = $this->_expandlinks($this->results, $URI);
		return true;
	}
	else
		return false;
}