Action hook 'rss_head'

in WP Core File wp-includes/feed-rss.php at line 26

View Source

rss_head

Action Hook
Description
Fires at the end of the RSS Feed Header.

Hook Information

File Location wp-includes/feed-rss.php View on GitHub
Hook Type Action
Line Number 26

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into rss_head
add_action('rss_head', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/feed-rss.php:26 - How this hook is used in WordPress core
<?php
  21  	/**
  22  	 * Fires at the end of the RSS Feed Header.
  23  	 *
  24  	 * @since 2.0.0
  25  	 */
  26  	do_action( 'rss_head' );
  27  	?>
  28  
  29  <?php
  30  while ( have_posts() ) :
  31  	the_post();

PHP Documentation

<?php
/**
	 * Fires at the end of the RSS Feed Header.
	 *
	 * @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.