[wp-trac] [WordPress Trac] #47779: Add a filter to `get_item_schema()` to be able to extend the schema of existing properties

WordPress Trac noreply at wordpress.org
Fri Jul 26 11:54:35 UTC 2019


#47779: Add a filter to `get_item_schema()` to be able to extend the schema of
existing properties
-------------------------+-----------------------------
 Reporter:  luisherranz  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:
 Severity:  trivial      |   Keywords:
  Focuses:  rest-api     |
-------------------------+-----------------------------
 Right now there's no way to properly extend the schema of existing fields
 with additional properties. For example, the `content` field could be
 extended with new properties (in addition to content.rendered and
 content.raw).

 Adding a filter to `WP_REST_Posts_Controller::get_item_schema()` would
 help solve this problem.

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


More information about the wp-trac mailing list