post_comments_feed_link

SummerySummery

Displays the comment feed link for a post.

Syntax

post_comments_feed_link( string $link_text = '', int $post_id = '', string $feed = '' )

DescriptionDescription

Prints out the comment feed link for a post. Link text is placed in the anchor. If no link text is specified, default text is used. If no post ID is specified, the current post is used.

ParametersParameters

$link_text

(string) (Optional) Descriptive link text. Default 'Comments Feed'.

Default value: ''

$post_id

(int) (Optional) Post ID. Default is the ID of the global $post.

Default value: ''

$feed

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

Default value: ''

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top