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

WordPress Trac noreply at wordpress.org
Fri Sep 4 20:48: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 krogsgard):

 Current notification functions are pluggable, and that's (I hear) not a go
 anymore. So if you keep the same naming convention, you'd probably utilize
 `wp_notify_commentauthor` inside of `wp-includes/comment-functions.php`
 that would operate similarly to `wp_notify_postauthor`.

 `wp_notify_postauthor` is triggered from `wp_set_comment_status` for newly
 approved comments. You could call `wp_notify_commentauthor` in the same
 way.

 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.

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


More information about the wp-trac mailing list