[wp-trac] [WordPress Trac] #33717: Send Notification Email When a Comment is Approved From Moderation

WordPress Trac noreply at wordpress.org
Fri Sep 4 21:01:28 UTC 2015


#33717: Send Notification Email When a Comment is Approved From Moderation
----------------------------------------+-----------------------------
 Reporter:  jeffr0                      |       Owner:
     Type:  feature request             |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Comments                    |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+-----------------------------

Comment (by kasparsd):

 Replying to [comment:10 krogsgard]:
 > `wp_notify_postauthor` is triggered from `wp_set_comment_status` for
 newly approved comments. You could call `wp_notify_commentauthor` in the
 same way.

 There is also the `transition_comment_status`
 [https://developer.wordpress.org/reference/hooks/transition_comment_status/
 action].

 I think the [https://wordpress.org/plugins/comment-approved/ "Comment
 Approved" plugin] is a good of example of how it could be achieved.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33717#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list