SimplePie::get_item

Advertisement

Summery Summery

Get a single item from the feed

Syntax Syntax

SimplePie::get_item( int $key )

Description Description

This is better suited for for() loops, whereas get_items() is better suited for foreach() loops.

Parameters Parameters

$key

(Required) The item that you want to return. Remember that arrays begin with 0, not 1

Return Return

(SimplePie_Item|null)

Source Source

File: wp-includes/class-simplepie.php

		}
		elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'title'))
		{
			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
		}
		elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'title'))
		{
			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
		}
		elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_DC_11, 'title'))
		{
			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);

Advertisement

Changelog Changelog

Changelog
Version Description
Beta 2 Introduced.

See also See also

Advertisement

Leave a Reply