Title: Hook into / filter Comments RSS feed?
Last modified: August 21, 2016

---

# Hook into / filter Comments RSS feed?

 *  Resolved [flamey](https://wordpress.org/support/users/flamey/)
 * (@flamey)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/hook-into-filter-comments-rss-feed/)
 * A lot of users leave personal details in comments to posts on my blog – emails,
   phone numbers. I want to replace this info with stubs in the comments RSS feed,
   but I don’t understand which filter I can use.
    For the posts I can use
 *     ```
       add_filter( 'the_excerpt_rss',  'plugin_replace_info' );
       add_filter( 'the_content_feed', 'plugin_replace_info' );
       ```
   
 * But what should I use for the comments?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [flamey](https://wordpress.org/support/users/flamey/)
 * (@flamey)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/hook-into-filter-comments-rss-feed/#post-5038455)
 * never mind, I got it
    `add_filter( 'get_comment_text', 'plugin_replace_info' );`
 *  Thread Starter [flamey](https://wordpress.org/support/users/flamey/)
 * (@flamey)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/hook-into-filter-comments-rss-feed/#post-5038585)
 * well, that changes data in the comments on the site as well, not just in the 
   feed. so the question is still open 🙁
 *  Thread Starter [flamey](https://wordpress.org/support/users/flamey/)
 * (@flamey)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/hook-into-filter-comments-rss-feed/#post-5038591)
 * adding check with `is_feed()` in `plugin_replace_info()` helps 🙂
    there’s also`
   is_comment_feed()`

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hook into / filter Comments RSS feed?’ is closed to new replies.

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 1 participant
 * Last reply from: [flamey](https://wordpress.org/support/users/flamey/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/hook-into-filter-comments-rss-feed/#post-5038591)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
