• Resolved flamey

    (@flamey)


    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

    (@flamey)

    never mind, I got it
    add_filter( 'get_comment_text', 'plugin_replace_info' );

    Thread Starter flamey

    (@flamey)

    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

    (@flamey)

    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.