rss_item
Action HookDescription
Fires at the end of each RSS feed item.Hook Information
File Location |
wp-includes/feed-rss.php
View on GitHub
|
Hook Type | Action |
Line Number | 43 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into rss_item
add_action('rss_item', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/feed-rss.php:43
- How this hook is used in WordPress core
<?php
38 /**
39 * Fires at the end of each RSS feed item.
40 *
41 * @since 2.0.0
42 */
43 do_action( 'rss_item' );
44 ?>
45 </item>
46 <?php endwhile; ?>
47 </channel>
48 </rss>
PHP Documentation
<?php
/**
* Fires at the end of each RSS feed item.
*
* @since 2.0.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/feed-rss.php
Related Hooks
Related hooks will be displayed here in future updates.