Title: commentsrss2_head
Published: April 25, 2014
Last modified: August 20, 2026

---

# do_action( ‘commentsrss2_head’ )

## In this article

 * [Source](https://developer.wordpress.org/reference/hooks/commentsrss2_head/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/commentsrss2_head/?output_format=md#changelog)

Fires at the end of the RSS2 comment feed header.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/commentsrss2_head/?output_format=md#source)󠁿

    ```php
    do_action( 'commentsrss2_head' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/feed-rss2-comments.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/feed-rss2-comments.php#L71)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/feed-rss2-comments.php#L71-L71)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/commentsrss2_head/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.3.0](https://developer.wordpress.org/reference/since/2.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcommentsrss2_head%2F)
before being able to contribute a note or feedback.