[wp-trac] [WordPress Trac] #43349: WP Rest API: Support for WP Mail

WordPress Trac noreply at wordpress.org
Thu Mar 22 17:48:04 UTC 2018


#43349: WP Rest API: Support for WP Mail
-----------------------------+------------------------------
 Reporter:  bhubbard         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  REST API         |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  rest-api
-----------------------------+------------------------------

Comment (by schlessera):

 The WP REST API is designed to model "resources" that you can interact
 with through a CRUD interface using the HTTP verbs.

 Sending one email is difficult to map onto this design, as it is a one-off
 action, and the actual resource can never be retrieved or linked to.

 So the problem for making wp_mail accessible through the REST API lies in
 defining how to model an email as a resource that fits that design.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43349#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list