WordPress at Your Fingertips
function is not described

SimplePie_Item::get_author() public WP 2

Get an author for the item

{} It's a method of the class: SimplePie_Item{}

No Hooks.

Return

SimplePie_Author|null.

Usage

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

Changelog

Since 2 Introduced.
Since Beta 2

Code of SimplePie_Item::get_author() WP 5.8.2

public function get_author($key = 0)
{
	$authors = $this->get_authors();
	if (isset($authors[$key]))
	{
		return $authors[$key];
	}

	return null;
}