Action hook 'rss2_comments_ns'

in WP Core File wp-includes/feed-rss2-comments.php at line 31

View Source

rss2_comments_ns

Action Hook
Description
Fires at the end of the RSS root to add namespaces.

Hook Information

File Location wp-includes/feed-rss2-comments.php View on GitHub
Hook Type Action
Line Number 31

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-includes/feed-rss2-comments.php:31 - How this hook is used in WordPress core
<?php
  26  	/**
  27  	 * Fires at the end of the RSS root to add namespaces.
  28  	 *
  29  	 * @since 2.8.0
  30  	 */
  31  	do_action( 'rss2_comments_ns' );
  32  	?>
  33  >
  34  <channel>
  35  	<title>
  36  	<?php

PHP Documentation

<?php
/**
	 * Fires at the end of the RSS root to add namespaces.
	 *
	 * @since 2.8.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/feed-rss2-comments.php
Related Hooks

Related hooks will be displayed here in future updates.