SimplePie::set_file()publicWP 1.0

Set an instance of {@see SimplePie_File} to use as a feed

Method of the class: SimplePie{}

No Hooks.

Return

true|false. True on success, false on failure

Usage

$SimplePie = new SimplePie();
$SimplePie->set_file( $file );
$file (required) (passed by reference — &)
-

SimplePie::set_file() code WP 6.5.4

public function set_file(&$file)
{
	if ($file instanceof SimplePie_File)
	{
		$this->feed_url = $file->url;
		$this->permanent_url = $this->feed_url;
		$this->file =& $file;
		return true;
	}
	return false;
}