[wp-trac] [WordPress Trac] #44326: Add relation parameter to REST API /wp/v2/posts endpoint
WordPress Trac
noreply at wordpress.org
Sun Nov 3 23:12:56 UTC 2019
#44326: Add relation parameter to REST API /wp/v2/posts endpoint
--------------------------------------+-----------------------------
Reporter: earnjam | Owner: earnjam
Type: enhancement | Status: closed
Priority: normal | Milestone: Future Release
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-unit-tests has-patch | Focuses: rest-api
--------------------------------------+-----------------------------
Changes (by TimothyBlynJacobs):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"46646" 46646]:
{{{
#!CommitTicketReference repository="" revision="46646"
REST API: Add tax relation parameter to posts collection.
The REST API supports filtering by terms across multiple taxonomies using
an AND relation. This adds support for an OR relation by adding
"tax_relation=OR" as a query parameter.
Props earnjam.
Fixes #44326.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44326#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list