WordPress at Your Fingertips
function is not described

SimplePie_Item::get_copyright() public WP 1.1

Get the copyright info for the item

Uses <atom:rights> or <dc:rights>

{} It's a method of the class: SimplePie_Item{}

No Hooks.

Return

String.

Usage

$SimplePie_Item = new SimplePie_Item();
$SimplePie_Item->get_copyright();

Changelog

Since 1.1 Introduced.

Code of SimplePie_Item::get_copyright() WP 5.8.2

public function get_copyright()
{
	if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'rights'))
	{
		return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
	}
	elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'rights'))
	{
		return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
	}
	elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'rights'))
	{
		return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
	}

	return null;
}