[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:05:31 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 kraftbj):

 Replying to [comment:10 krogsgard]:

 > Unfortunately that method would likely add a lot of duplicate code from
 the other comment notification emails. It'd be nice to have a more generic
 notification function.

 Yeah, we could split out a `wp_notify` for all of the functional bits,
 then use `wp_notify_postauthor`, `wp_notify_moderator`,
 `wp_notify_commentauthor` (for example) as a wrapper of that function.

 Replying to [comment:9 jeffr0]:
 >What are your thoughts on whether a commenter should have to opt-in to
 receive the notification instead of automatically sending it?

 Personally, automatic that can be disabled with a filter. When enabled,
 the "Your comment awaits moderation." changes to "Your comment awaits
 moderation. You will be notified if it is approved."

 Personally, I'm of the mindset that we should not (at least by default)
 notify comment authors that are deleted/spammed, etc.

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


More information about the wp-trac mailing list