[wp-trac] [WordPress Trac] #20353: Add filter for email recipients in wp_notify_moderator()

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 4 12:35:37 UTC 2012


#20353: Add filter for email recipients in wp_notify_moderator()
-------------------------+-----------------------------
 Reporter:  lexhair      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.3.1
 Severity:  minor        |   Keywords:
-------------------------+-----------------------------
 As administrator, I would like more control over email notifications when
 comments are marked for moderation without having to overwrite the
 pluggable function wp_notify_moderator.

 The function wp_notify_moderator sends emails to post authors (when they
 have sufficient roles) and the admin by hard coding the $email_to array.
 I'd like to see the $email_to array sent to a filter with $comment before
 wp_mail() is called. That would allow me to write a theme function to
 manipulate the $email_to array to add or delete recipients.

 My workaround was to write a site specific plugin that overwrote
 wp_notify_moderator() to manipulate the $email_to array.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20353>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list