Optional. The MySQL keyword used to join the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'. @type array ...$0 { An array of first-order clause parameters, or another fully-formed tax query.
$taxonomystring
Taxonomy being queried. Optional when field=term_taxonomy_id.
$termsstring|int|array
Term or terms to filter by.
$fieldstringdefault: 'term_id'
Field to match $terms against. Accepts 'term_id', 'slug', 'name', or 'term_taxonomy_id'.
$operatorstringdefault: 'IN'
MySQL operator to be used with $terms in the WHERE clause. Accepts 'AND', 'IN', 'NOT IN', 'EXISTS', 'NOT EXISTS'.
$include_childrenbooldefault: true. }
Optional. Whether to include child terms. Requires a $taxonomy.
Signature, return type and hooks compared across 5 parsed releases.
4.1.0
Added support for $operator 'NOT EXISTS' and 'EXISTS' values.from the docblock
3.1.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/class-wp-tax-query.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.