[wp-trac] [WordPress Trac] #38339: Add unregister_rest_route helper

WordPress Trac noreply at wordpress.org
Tue Oct 18 01:31:51 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       |   Keywords:
  Focuses:               |
 To fit with `register_rest_route`, we should add an
 `unregister_rest_route` that allows removing routes if the site developer
 or plugins want to remove specific routes. This allows them to selectively
 reduce the attack surface of the API if they're concerned about it, or
 simply disable pieces they don't need in an easier way than the existing
 `rest_endpoints` filter.

Ticket URL: <https://core.trac.wordpress.org/ticket/38339>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list