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

WordPress Trac noreply at wordpress.org
Sun Sep 20 09:20:23 UTC 2015


#33717: Send Notification Email When a Comment is Approved From Moderation
-----------------------------+-------------------------
 Reporter:  jeffr0           |       Owner:  swissspidy
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  4.4
Component:  Comments         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-------------------------
Changes (by swissspidy):

 * keywords:  has-patch needs-refresh => has-patch


Comment:

 > We should aim to do something that results in the email being sent as
 few times as is possible.

 [attachment:33717.7.diff 33717.7.diff] sets a flag using comment meta to
 prevent sending emails more than once when the status changes back and
 forth.

 > Also not send if comments are closed on the post.

 I disagree here. If comments are closed and a comment gets approved, it
 will still be shown on the website and the user should be notified about
 that.

 > What happens with custom comment statuses if using that hook?

 In my opinion, when someone adds new comment statuses, chances are that
 sending an email is not desired. If it is, the
 `comment_{$old_status}_to_{$new_status}` filter can easily be used to add
 this.

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


More information about the wp-trac mailing list