• 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: https://projectcloud.info/

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

    (@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’.

    Thread Starter inprojectcloud

    (@inprojectcloud)

    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.