[wp-trac] [WordPress Trac] #33587: Notification Functions Should be Replaced by Hooks

WordPress Trac noreply at wordpress.org
Wed Sep 16 22:18:35 UTC 2015


#33587: Notification Functions Should be Replaced by Hooks
-----------------------------------+---------------------------
 Reporter:  dshanske               |       Owner:  boonebgorges
     Type:  enhancement            |      Status:  closed
 Priority:  normal                 |   Milestone:  4.4
Component:  Mail                   |     Version:
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34251"]:
 {{{
 #!CommitTicketReference repository="" revision="34251"
 Move new user notification emails to `add_action()` callbacks.

 When a new user is created in various places throughout the interface,
 notifications are sent to the site admin and the new user. Previously,
 these
 notifications were fired through direct calls to
 `wp_new_user_notification()`,
 making it difficult to stop or modify the messages.

 This changeset introduces a number of new action hooks in place of direct
 calls
 to `wp_new_user_notification()`, and hooks the new wrapper function
 `wp_send_new_user_notifications()` to these hooks.

 Props dshanske, thomaswm, boonebgorges.
 Fixes #33587.
 }}}

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


More information about the wp-trac mailing list