devel:event:feed_item_add
This is an old revision of the document!
Table of Contents
FEED_ITEM_ADD
- Description:
- Manipulate RSS feed items
- DefaultAction:
- Adds the feed item to the RSS/Atom feed
- Preventable:
- yes
- Added:
- 2007-07-18
This event is signalled by rss_BuildItems() in feed.php when the feed is build. You can use this to manipulate feed items before they are added to the feed. Eg. you could add advertising banners or add additional links in the description.
Passed Data
- $data['item'] - The Feed Item object prepared for insertion in the feed
- $data['opt'] - associative array of feed options
- $data['ditem'] - the raw item data as it was given to the rss_BuildItems function
- $data['rss'] - the full feed creator object
Plugins handling this event
The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.
See also
devel/event/feed_item_add.1225020662.txt.gz · Last modified: 2008-10-26 12:31 by andi