commentrss2_item WordPress Action Hook

The commentrss2_item hook is used to add extra data to the RSS feed for each comment. This hook is called after the comment has been fetched from the database and before it is added to the RSS feed.

do_action( 'commentrss2_item', int $comment_ID, int $ID ) #

Fires at the end of each RSS2 comment feed item.


Parameters

$comment_ID

(int)The ID of the comment being displayed.

$ID

(int)The ID of the post the comment is connected to.


Top ↑

Source

File: wp-includes/feed-rss2-comments.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.1.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.