Terms
Class.
Conditions on the terms of a taxonomy, named by its class (#[Taxonomy]):
Terms::in(Genre::class, [$jazz, $blues]). Terms are WP_Term objects or term IDs.
Methods
all()
Posts with all of the terms.
Returns Condition
exists()
Posts with any term of the taxonomy.
Returns Condition
in()
Posts with at least one of the terms; with their child terms by default, like WordPress.
Returns Condition
notExists()
Posts without a term of the taxonomy.
Returns Condition
notIn()
Posts with none of the terms.
Returns Condition