SimplePie_Item::get_enclosure

Advertisement

Summery Summery

Get an enclosure from the item

Syntax Syntax

SimplePie_Item::get_enclosure( int $key,  $prefer = null )

Description Description

Supports the RSS tag, as well as Media RSS and iTunes RSS.

Parameters Parameters

$key

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

Return Return

(SimplePie_Enclosure|null)

Source Source

File: wp-includes/SimplePie/Item.php

	 */
	public function get_enclosure($key = 0, $prefer = null)
	{
		$enclosures = $this->get_enclosures();
		if (isset($enclosures[$key]))
		{
			return $enclosures[$key];
		}

		return null;
	}

Advertisement

Changelog Changelog

Changelog
Version Description
Beta 2 Introduced.

Advertisement

Leave a Reply