[wp-trac] [WordPress Trac] #35069: Allow short-circuiting wp_mail

WordPress Trac noreply at wordpress.org
Mon Dec 14 08:41:46 UTC 2015


#35069: Allow short-circuiting wp_mail
-------------------------+-----------------------------
 Reporter:  DvanKooten   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 Much like `schedule_event` and several other functions in the WP codebase,
 it would be cool if `wp_mail` could be short circuited by returning a
 `falsey` value as the return value of the `wp_mail` filter.

 The function is already pluggable right now, but I think this would make
 for a neat addition to the default function as this will allow plugins to
 perform things as queueing emails to be processed in the background (as
 sending email tends to be slow).

 It will also allow for easier disabling of all emails in local / staging /
 development environments.

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


More information about the wp-trac mailing list