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

WordPress Trac noreply at wordpress.org
Sat Jan 23 22:57:03 UTC 2016


#35590: Add filters to allow creating REST API middleware plugins
-------------------------+------------------------------
 Reporter:  jnylen0      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by joehoyle):

 FWIW when I was asked about this - I had presumed that `rest_pre_dispatch`
 was invoked after the correct endpoint had been matched, but that's not
 actually the case. I'm not totally sure why we did that, it seems like it
 would make sense to call `rest_pre_dispatch` just before the request is
 actually dispatched to the endpoint (right before), rather than before any
 endpoint has even been matched.

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


More information about the wp-trac mailing list