Core Function
View Source on Trac ↗ get_post_comments_feed_link()
get_post_comments_feed_link( mixed $post_id = 0, mixed $feed = '' ) Retrieves the permalink for the post comments feed.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $post_id int | Optional. Post ID. Default is the ID of the global `$post`. |
| string | $feed Optional. Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed(). Required |
Return Value
(string)
The permalink for the comments feed for the given post on success, empty string on failure.
Function Information
Since Version
2.2.0
Source File
wp-includes/link-template.php
Advertisement