[wp-trac] [WordPress Trac] #35590: Add filters to allow creating REST API middleware plugins
WordPress Trac
noreply at wordpress.org
Sat Jan 23 23:06:57 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 jnylen0):
One difference is that as currently written, `rest_pre_dispatch` would
allow a plugin to handle requests that don't match any defined endpoints.
Not that that sounds like an especially good idea.
If we can move `rest_pre_dispatch` further down as you suggest, and add
`rest_post_dispatch`, that would be a simpler way to meet our needs here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35590#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list