SimplePie::get_contributor()
Get a contributor for the feed
Метод класса: SimplePie{}
Хуков нет.
Возвращает
SimplePie_Author|null
.
Использование
$SimplePie = new SimplePie(); $SimplePie->get_contributor( $key );
- $key(int)
- The contrbutor that you want to return. Remember that arrays begin with 0, not 1
Список изменений
С версии 1.1 | Введена. |
Код SimplePie::get_contributor() SimplePie::get contributor WP 6.1.1
public function get_contributor($key = 0) { $contributors = $this->get_contributors(); if (isset($contributors[$key])) { return $contributors[$key]; } return null; }