SimplePie::set_raw_data

Advertisement

Summery Summery

Set the raw XML data to parse

Syntax Syntax

SimplePie::set_raw_data( string $data )

Description Description

Allows you to use a string of RSS/Atom data instead of a remote feed.

If you have a feed available as a string in PHP, you can tell SimplePie to parse that data string instead of a remote feed. Any set feed URL takes precedence.

Parameters Parameters

$data

(Required) RSS or Atom data as a string.

Source Source

File: wp-includes/class-simplepie.php

			foreach ($url as $value)
			{
				$this->multifeed_url[] = $this->registry->call('Misc', 'fix_protocol', array($value, 1));
			}

Advertisement

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

See also See also

Advertisement

Leave a Reply