[wp-trac] [WordPress Trac] #53065: wp_mail return values should be filterable

WordPress Trac noreply at wordpress.org
Wed Apr 21 03:52:00 UTC 2021


#53065: wp_mail return values should be filterable
-------------------------+-----------------------------
 Reporter:  shawfactor   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Firstly yes I know wp_amil is a pluggable function.

 But right now having to overwrite thw whole function just to be bale to
 change the return value of wp_mail is not only overkill but limits ofrward
 compatibility of any code written.

 I propose that the return values be filterable.

 My ow use case is that ive built an email queue and filter wp_mail
 attaributes to force emails onto the queue. The problem this causes is
 that other plugins are saying that they emails  are not sent (which is
 sort of true in the sense they are not sent right away, but are later)

 A filter would overcome this problem and I am sure similar ones for other
 users

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53065>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list