SimplePie::get_author()
Get an author for the feed
{} It's a method of the class: SimplePie{}
No Hooks.
Return
SimplePie_Author|null
.
Usage
$SimplePie = new SimplePie(); $SimplePie->get_author( $key );
- $key(int)
- The author that you want to return. Remember that arrays begin with 0, not 1
Changelog
Since 1.1 | Introduced. |
Code of SimplePie::get_author() SimplePie::get author WP 6.0
public function get_author($key = 0) { $authors = $this->get_authors(); if (isset($authors[$key])) { return $authors[$key]; } return null; }