SimplePie_Item::get_category

Advertisement

Summery Summery

Get a category for the item

Syntax Syntax

SimplePie_Item::get_category( int $key )

Parameters Parameters

$key

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

Return Return

(SimplePie_Category|null)

Source Source

File: wp-includes/SimplePie/Item.php

	 */
	public function get_thumbnail()
	{
		if (!isset($this->data['thumbnail']))
		{
			if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail'))
			{
				$this->data['thumbnail'] = $return[0]['attribs'][''];
			}
			else
			{
				$this->data['thumbnail'] = null;

Advertisement

Advertisement

Leave a Reply