[wp-trac] [WordPress Trac] #38339: Add unregister_rest_route helper
WordPress Trac
noreply at wordpress.org
Tue Oct 18 01:43:00 UTC 2016
#38339: Add unregister_rest_route helper
-------------------------+------------------
Reporter: rmccue | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------
Comment (by jnylen0):
It should also be possible to guarantee that the same endpoint isn't re-
registered later in the request or executed as part of an `_embed`
response. It would also be nice to be able to exclude entire groups of
endpoints at once. Maybe a filter like `rest_is_route_allowed` would be a
more flexible way to achieve the same thing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38339#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list