SimplePie::set_file

Advertisement

Summery Summery

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

Syntax Syntax

SimplePie::set_file( $file )

Parameters Parameters

(Required) &$file

Return Return

(bool) True on success, false on failure

Source Source

File: wp-includes/class-simplepie.php

	{
		$this->force_feed = (bool) $enable;
	}

	/**
	 * Set the URL of the feed you want to parse
	 *
	 * This allows you to enter the URL of the feed you want to parse, or the
	 * website you want to try to use auto-discovery on. This takes priority
	 * over any set raw data.

Advertisement

Advertisement

Leave a Reply