W3cubDocs

/WordPress

comments_rss()

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

function comments_rss() {
	_deprecated_function( __FUNCTION__, '2.2.0', 'get_post_comments_feed_link()' );
	return esc_url( get_post_comments_feed_link() );
}

Changelog

Version Description
2.2.0 Use get_post_comments_feed_link()
1.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/comments_rss