rss2_item
Action HookDescription
Fires at the end of each RSS2 feed item.Hook Information
File Location |
wp-includes/feed-rss2.php
View on GitHub
|
Hook Type | Action |
Line Number | 125 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into rss2_item
add_action('rss2_item', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/feed-rss2.php:125
- How this hook is used in WordPress core
<?php
120 /**
121 * Fires at the end of each RSS2 feed item.
122 *
123 * @since 2.0.0
124 */
125 do_action( 'rss2_item' );
126 ?>
127 </item>
128 <?php endwhile; ?>
129 </channel>
130 </rss>
PHP Documentation
<?php
/**
* Fires at the end of each RSS2 feed item.
*
* @since 2.0.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/feed-rss2.php
Related Hooks
Related hooks will be displayed here in future updates.