[wp-trac] [WordPress Trac] #33587: Notification Functions Should be Replaced by Hooks
WordPress Trac
noreply at wordpress.org
Fri Aug 28 12:19:02 UTC 2015
#33587: Notification Functions Should be Replaced by Hooks
-------------------------+-----------------------------
Reporter: dshanske | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
wp_notify_postauthor, wp_notify_moderator, wp_new_user_notification,
wp_password_change_notification should be replaced by hooks.
Basically, I am proposing removing the code from these functions to a
secondary function. These functions, which are pluggable and needed for
legacy reasons, would remain, but would just have the hook inside. This
would ensure backward compatability.
Not only does, in my opinion, make more sense going forward, it removes
the assumption that a notification is an email. Today, it could be a text
message, a push notification to a phone, so on.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33587>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list