rss2_item WordPress Action Hook

The rss2_item hook is used to add new items to an RSS feed. This hook is used in conjunction with the rss2_head and rss2_footer hooks.

do_action( 'rss2_item' ) #

Fires at the end of each RSS2 feed item.


More Information

The rss2_item action hook is triggered immediately after the default output of an rss2 feed.

This hook has no parameters and no return values. It can be used to echo data into the feed if necessary.

This hook is not dependent on your theme. It can be called within your theme’s functions.php file or from a plugin.


Top ↑

Source

File: wp-includes/feed-rss2.php

View on Trac


Top ↑

Changelog

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