WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Identifying comment ID in comment_text filter (2 posts)

  1. jeremy2882
    Member
    Posted 3 years ago #

    Anyone know how to retrieve the comment ID of the comment which a comment_text filter is being applied to? global $comment doesn't reliably point to the correct comment.

  2. vinaypai
    Member
    Posted 3 years ago #

    This was posted a while ago, but the answer might still be useful. I believe the correct way is with the comment_ID function

Topic Closed

This topic has been closed to new replies.

About this Topic