[wp-trac] [WordPress Trac] #54087: A plugin can't change the parameters of a REST API endpoint

WordPress Trac noreply at wordpress.org
Mon Feb 20 20:04:19 UTC 2023


#54087: A plugin can't change the parameters of a REST API endpoint
---------------------------+------------------------------
 Reporter:  antonvlasenko  |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  REST API       |     Version:  5.9
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  rest-api
---------------------------+------------------------------

Comment (by rachelbaker):

 > why this function was implemented without a filter was probably a very
 early decision.

 @TimothyBlynJacobs is correct.

 We intentionally avoided making it "easy" for plugins to have full control
 over the core endpoints. This design decision was made to favor
 standardization across all WP sites for the built-in endpoints. Plugins
 can easily extend existing endpoints or add new endpoints.

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


More information about the wp-trac mailing list