SimplePie_Item::get_permalink

Advertisement

Summery Summery

Get the permalink for the item

Syntax Syntax

SimplePie_Item::get_permalink()

Description Description

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

Return Return

(string|null) Permalink URL

Source Source

File: wp-includes/SimplePie/Item.php

	 * Returns the first link available with a relationship of "alternate".
	 * Identical to {@see get_link()} with key 0
	 *
	 * @see get_link
	 * @since 0.8
	 * @return string|null Permalink URL
	 */
	public function get_permalink()
	{
		$link = $this->get_link();
		$enclosure = $this->get_enclosure(0);
		if ($link !== null)
		{
			return $link;
		}
		elseif ($enclosure !== null)
		{

Advertisement

Changelog Changelog

Changelog
Version Description
0.8 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.