[wp-trac] [WordPress Trac] #44326: Add relation parameter to REST API /wp/v2/posts endpoint

WordPress Trac noreply at wordpress.org
Tue Jun 18 21:59:18 UTC 2019


#44326: Add relation parameter to REST API /wp/v2/posts endpoint
------------------------------------------+-----------------------------
 Reporter:  earnjam                       |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  REST API                      |     Version:  4.7
 Severity:  normal                        |  Resolution:
 Keywords:  has-unit-tests needs-refresh  |     Focuses:  rest-api
------------------------------------------+-----------------------------

Comment (by earnjam):

 Thanks! I chose `relation` since that was the name of the parameter in
 `WP_Query`, though I can see how that is pretty vague. I like
 `term_relation`, but I wonder if it should be something like
 `tax_relation` since it's the relationship between the taxonomies, not the
 individual terms.

 This ticket actually spun out of #41287, which is for supporting the use
 an `AND` relationship between terms within a single taxonomy. I think the
 two would pair up nicely to extend what is possible through the API.

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


More information about the wp-trac mailing list