Recent

crp_query_tax_query_relation filter

crp_query_tax_query_relation

Filter the tax_query relation parameter.

Type: filter
Since: 3.5.3
Source: includes/class-crp-core-query.php line 422

Parameters

TypeNameDescription
string$relationThe logical relationship between each inner taxonomy array when there is more than one. Default is ‘AND’.
array$argsArguments array.

Usage

add_filter( 'crp_query_tax_query_relation', function($relation, $args) {
    // ...
    return $relation;
} );