Support » Plugins » Hacks » Notify comment author upon comment approval

  • Hi,

    I was trying to send a mail to the comment author when a pending/on hold/moderated comments get approved by the admin. But nothing happened for me.

    function notify_author($comment_ID, $status) {
      if($status=='approve'){
        //mail to author
      }
    add_action('wp_set_comment_status', 'notify_author', 10, 2 );

    But It didn’t work for me. Anybody know with which hook I have to work with?

  • The topic ‘Notify comment author upon comment approval’ is closed to new replies.