WordPress at Your Fingertips
function is not described

SimplePie_Item::get_permalink() public WP 0.8

Get the permalink for the item

Returns the first link available with a relationship of "alternate". Identical to get_link() with key 0

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

No Hooks.

Return

String|null. Permalink URL

Usage

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

Notes

Changelog

Since 0.8 Introduced.

Code of SimplePie_Item::get_permalink() WP 5.8.2

public function get_permalink()
{
	$link = $this->get_link();
	$enclosure = $this->get_enclosure(0);
	if ($link !== null)
	{
		return $link;
	}
	elseif ($enclosure !== null)
	{
		return $enclosure->get_link();
	}

	return null;
}