[wp-trac] [WordPress Trac] #38028: Send emails via an action
WordPress Trac
noreply at wordpress.org
Tue Sep 13 09:49:51 UTC 2016
#38028: Send emails via an action
-------------------------+------------------------------
Reporter: markcallen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by markcallen):
Replying to [comment:1 johnbillion]:
> Here's a doc I created which lists all of the instances where WordPress
sends an email, and the related hooks and filters:
https://gist.github.com/johnbillion/0a48021de5510c41d517 . These would
need to be taken into account for backwards compatibility.
This is a useful list that clearly shows the inconsistent approach to how
emails are filtered and sent. Using filters to disable actions should not,
IMO, be the best approach.
My proposal, I believe, leaves everything in place so backward
compatibility is assured.
It simply introduces a specific hook per email which can be left alone for
everything to stay as is, removed to disable the message, or replaced for
developers to do with as they wish.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38028#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list