SimplePie::get_copyright

Advertisement

Summery Summery

Get the copyright info for the feed

Syntax Syntax

SimplePie::get_copyright()

Description Description

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

Return Return

(string|null)

Source Source

File: wp-includes/class-simplepie.php

		{
			return array_unique($contributors);
		}

		return null;
	}

	/**
	 * Get a single link for the feed
	 *
	 * @since 1.0 (previously called `get_feed_link` since Preview Release, `get_feed_permalink()` since 0.8)
	 * @param int $key The link that you want to return. Remember that arrays begin with 0, not 1
	 * @param string $rel The relationship of the link to return
	 * @return string|null Link URL
	 */
	public function get_link($key = 0, $rel = 'alternate')
	{
		$links = $this->get_links($rel);
		if (isset($links[$key]))
		{
			return $links[$key];
		}

		return null;
	}

	/**

Advertisement

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Advertisement

Leave a Reply