[wp-trac] [WordPress Trac] #53829: Add unique keywords for wp_mail calls to categorize it
WordPress Trac
noreply at wordpress.org
Sun Aug 3 13:41:23 UTC 2025
#53829: Add unique keywords for wp_mail calls to categorize it
-----------------------------+------------------------------
Reporter: birgire | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
-----------------------------+------------------------------
Changes (by SirLouen):
* keywords: => 2nd-opinion
* type: enhancement => feature request
Comment:
This was already commented on before, here #49661 and in fact it was
providing a patch with something similar, not the exact format that is
proposed here, but something like this:
{{{
'id' => 'delete_site_email',
'group' => 'ms',
}}}
Which anyway, would be valid for the purposes stated here.
I had this proposal on my notes, and definitely this could be a great head
start instead of taking #49661 as a whole, because this ticket is tackling
so many things that it's going to be difficult to merge that any day with
how much complexity it's bringing.
> It might be easier to implement if wp_mail() would support a single
array of arguments: wp_mail( $args )
The idea of switching to this is not feasible because it will bring a ton
of backwards compatibility issues with a single parameter. And personally,
I would rather choose to, one day, deprecate the `wp_mail` pluggable in
exchange for encapsulating the whole mailing functionality into a fully
featured class exactly as proposed in the former ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53829#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list