[wp-trac] [WordPress Trac] #35590: Add filters to allow creating REST API middleware plugins

WordPress Trac noreply at wordpress.org
Fri Sep 30 20:11:12 UTC 2016


#35590: Add filters to allow creating REST API middleware plugins
-------------------------+-----------------------------
 Reporter:  jnylen0      |       Owner:  rmccue
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Future Release
Component:  REST API     |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by joehoyle):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38689"]:
 {{{
 #!CommitTicketReference repository="" revision="38689"
 REST API: Add filters to allow creating REST API middleware plugins.

 Introduce two new filters: `rest_request_before_callbacks` and
 `rest_request_after_callbacks` to
 assist REST API middleware plugins to perform pre-callback and cleanup
 hooks such as `switch_to_blog()`
 or caching implementations.

 Props jnylen0.
 Fixes #35590.
 }}}

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


More information about the wp-trac mailing list