SimplePie::get_link

Advertisement

Summery Summery

Get a single link for the feed

Syntax Syntax

SimplePie::get_link( int $key, string $rel = 'alternate' )

Parameters Parameters

$key

(int) (Required) The link that you want to return. Remember that arrays begin with 0, not 1

$rel

(string) (Optional) The relationship of the link to return

Default value: 'alternate'

Return Return

(string|null) Link URL

Source Source

File: wp-includes/class-simplepie.php

		if (!empty($categories))
		{
			return array_unique($categories);
		}

		return null;
	}

	/**
	 * Get an author for the feed
	 *

Advertisement

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Advertisement

Leave a Reply

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