WPDev.one
Core Function
View Source on Trac ↗

get_author_feed_link()

get_author_feed_link( mixed $author_id, mixed $feed = '' )

Retrieves the feed link for a given author.

Parameters 2 required

Name / Type Description
$author_id
int

Author ID.

Required
string

$feed Optional. Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().

Required

Return Value

(string)
Link to the feed for the author specified by $author_id.

Function Information

Since Version
2.5.0
Source File
wp-includes/link-template.php
Advertisement