SimplePie::get_category()
Get a category for the feed
Method of the class: SimplePie{}
No Hooks.
Return
SimplePie_Category|null
.
Usage
$SimplePie = new SimplePie(); $SimplePie->get_category( $key );
- $key(int)
- The category that you want to return. Remember that arrays begin with 0, not 1
Changelog
SimplePie::get_category() SimplePie::get category code WP 6.6.2
public function get_category($key = 0) { $categories = $this->get_categories(); if (isset($categories[$key])) { return $categories[$key]; } return null; }