[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:55:32 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      |  Resolution:
 Keywords:               |     Focuses:  rest-api
-------------------------+------------------------------
Changes (by luisherranz):

 * Attachment "class-wp-rest-posts-controller.diff" added.

 Added filter `rest_{$this->post_type}_item_schema` in class-wp-rest-posts-
 controller.php

-- 
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