Summery Summery
Get an author for the item
Syntax Syntax
Parameters Parameters
- $key
-
(Required) The author that you want to return. Remember that arrays begin with 0, not 1
Return Return
(SimplePie_Author|null)
Source Source
File: wp-includes/SimplePie/Item.php
{
$categories[] = $this->registry->create('Category', array($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null, $type));
}
foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, $type) as $category)
{
$categories[] = $this->registry->create('Category', array($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null, $type));
}
if (!empty($categories))
{
return array_unique($categories);
}
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| Beta 2 | Introduced. |