get_author_feed_link

SummerySummery

Retrieves the feed link for a given author.

Syntax

get_author_feed_link( int $author_id, string $feed = '' )

DescriptionDescription

Returns a link to the feed for all posts by a given author. A specific feed can be requested or left blank to get the default feed.

ParametersParameters

$author_id

(int) (Required) Author ID.

$feed

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

Default value: ''

ReturnReturn

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

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top