SimplePie::get_contributor()publicWP 1.1

Get a contributor for the feed

Method of the class: SimplePie{}

No Hooks.

Return

SimplePie_Author|null.

Usage

$SimplePie = new SimplePie();
$SimplePie->get_contributor( $key );
$key(int)
The contrbutor that you want to return. Remember that arrays begin with 0, not 1

Changelog

Since 1.1 Introduced.

SimplePie::get_contributor() code WP 6.5.2

public function get_contributor($key = 0)
{
	$contributors = $this->get_contributors();
	if (isset($contributors[$key]))
	{
		return $contributors[$key];
	}

	return null;
}