Summery Summery
Get the permalink for the item
Syntax Syntax
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
| Version | Description |
|---|---|
| 0.8 | Introduced. |