On this page
comments_rss(): string
This function has been deprecated. Use get_post_comments_feed_link() instead.
Return link to the post RSS feed.
Description
See also
Return
string
Source
File: wp-includes/deprecated.php. View all references
function comments_rss() {
_deprecated_function( __FUNCTION__, '2.2.0', 'get_post_comments_feed_link()' );
return esc_url( get_post_comments_feed_link() );
}
Related
Uses
| Uses | Description |
|---|---|
| get_post_comments_feed_link() wp-includes/link-template.php | Retrieves the permalink for the post comments feed. |
| esc_url() wp-includes/formatting.php | Checks and cleans a URL. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Use get_post_comments_feed_link() |
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/comments_rss