SimplePie::set_feed_url

Advertisement

Summery Summery

Set the URL of the feed you want to parse

Syntax Syntax

SimplePie::set_feed_url( string|array $url )

Description Description

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.

You can set multiple feeds to mash together by passing an array instead of a string for the $url. Remember that with each additional feed comes additional processing and resources.

Parameters Parameters

$url

(Required) This is the URL (or array of URLs) that you want to parse.

Source Source

File: wp-includes/class-simplepie.php

			}
			if (!empty($this->data['ordered_items']))
			{
				foreach ($this->data['ordered_items'] as $item)
				{
					$item->__destruct();
				}
				unset($item, $this->data['ordered_items']);
			}
		}
	}

	/**
	 * Force the given data/URL to be treated as a feed
	 *

Advertisement

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

See also See also

Advertisement

Leave a Reply