SimplePie::get_category()publicWP 1.0

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

Since Unknown

SimplePie::get_category() code WP 6.4.3

public function get_category($key = 0)
{
	$categories = $this->get_categories();
	if (isset($categories[$key]))
	{
		return $categories[$key];
	}

	return null;
}