[wp-trac] [WordPress Trac] #40027: Tags and Categories should have a "slugs" parameter for batch fetching

WordPress Trac noreply at wordpress.org
Mon Mar 6 03:44:40 UTC 2017


#40027: Tags and Categories should have a "slugs" parameter for batch fetching
--------------------------------------------+--------------------
 Reporter:  wonderboymusic                  |       Owner:
     Type:  enhancement                     |      Status:  new
 Priority:  normal                          |   Milestone:  4.7.4
Component:  REST API                        |     Version:  4.7
 Severity:  normal                          |  Resolution:
 Keywords:  needs-unit-tests needs-testing  |     Focuses:
--------------------------------------------+--------------------
Changes (by MatheusGimenez):

 * keywords:  needs-patch needs-unit-tests => needs-unit-tests needs-testing


Comment:

 I added array support in the parameter {{{ slug }}} in this patch.

 Example to use:
 SITE_URL/wp-json/wp/v2/categories/?slug[]=slug-0[]=slug-1&slug[]=slug-2

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


More information about the wp-trac mailing list