get_post_comments_feed_link

SummerySummery

Retrieves the permalink for the post comments feed.

Syntax

get_post_comments_feed_link( int $post_id, string $feed = '' )

ParametersParameters

$post_id

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

$feed

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

Default value: ''

ReturnReturn

(string) The permalink for the comments feed for the given post.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
2.2.0 Introduced.
Scroll to Top