Support » Plugins » Hacks » Notify commenter regarding reply

  • Hi,

    I want to code into my origin wordpress theme the ability to notify a commenter regarding a reply they received for their comment.

    I do not want to use a plugin since that will just increase the loading time,etc.

    Any hints?

    My site:

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz


    You need to hook some comment filter or action, perhaps the ‘pre_comment_approved’ filter for example, and get the comment parent’s email address, if it exists. If it exists, send the email. The comment parent ID is available from $commentdata['comment_parent'] and $_POST['comment_parent']. With the parent ID, you can use get_comment(), the returned value will have the email address with the keyname ‘comment_author_email’.

    Rightly said. A bit complicated. I’m using a plugin while working on a code. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notify commenter regarding reply’ is closed to new replies.