comment_text_rss() WordPress Function

This function allows you to display RSS comments in your Wordpress blog. This is useful if you want to syndicate your comments to other blogs or websites. You can use this function to display the most recent comments, or you can use it to display comments from a specific post.

comment_text_rss() #

Display the current comment content for use in the feeds.


Source

File: wp-includes/feed.php

function comment_text_rss() {
	$comment_text = get_comment_text();
	/**
	 * Filters the current comment content for use in a feed.
	 *
	 * @since 1.5.0
	 *
	 * @param string $comment_text The content of the current comment.
	 */
	$comment_text = apply_filters( 'comment_text_rss', $comment_text );
	echo $comment_text;
}


Top ↑

Changelog

Changelog
VersionDescription
1.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.