[wp-trac] [WordPress Trac] #53829: Add unique keywords for wp_mail calls to categorize it
WordPress Trac
noreply at wordpress.org
Thu Jul 29 16:22:18 UTC 2021
#53829: Add unique keywords for wp_mail calls to categorize it
-------------------------+-----------------------------
Reporter: birgire | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Here's a suggestion to add unique keywords (handles) for {{{wp_mail()}}}
calls to better categorize it, like: {{{namespace:component/to/subject}}},
if we simulate the block names structure, just to mention one possibility.
Examples: {{{wp:login/user/retrieve_password}}} or
{{{wp:login/site_admin/new_user}}} where {{{wp}}} is the namespace for
WordPress core and plugins could use their own.
These might also be in separate array arguments, instead of a single
string.
This would help targeting a single email or group of emails.
It might be easier to implement if {{{wp_mail()}}} would support a single
array of arguments: {{{wp_mail( $args )}}}
ps: Helpful list of core emails:
https://github.com/johnbillion/wp_mail
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53829>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list