SimplePie_Item::get_contributor

Advertisement

Summery Summery

Get a contributor for the item

Syntax Syntax

SimplePie_Item::get_contributor( int $key )

Parameters Parameters

$key

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

Return Return

(SimplePie_Author|null)

Source Source

File: wp-includes/SimplePie/Item.php

	 * @param int $key The author that you want to return.  Remember that arrays begin with 0, not 1
	 * @return SimplePie_Author|null
	 */
	public function get_author($key = 0)
	{
		$authors = $this->get_authors();
		if (isset($authors[$key]))
		{
			return $authors[$key];
		}

		return null;

Advertisement

Changelog Changelog

Changelog
Version Description
1.1 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?