[wp-trac] [WordPress Trac] #38710: Make all collection params filterable

WordPress Trac noreply at wordpress.org
Mon Nov 14 16:41:41 UTC 2016


#38710: Make all collection params filterable
-------------------------+-----------------------
 Reporter:  joehoyle     |       Owner:  joehoyle
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.7
Component:  REST API     |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |     Focuses:
-------------------------+-----------------------
Changes (by joehoyle):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39223"]:
 {{{
 #!CommitTicketReference repository="" revision="39223"
 REST API: Make all collection params filterable.

 For developers wanting to add their own registered collection parameters,
 they can now use the `rest_$type_collection_params` filter. This brings
 consistency with the already existing `rest_$post_type_collection_params`.

 Fixes #38710.
 Props jnylen0.
 }}}

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


More information about the wp-trac mailing list