crp_query_tax_query
Filter the tax_query passed to the query.
Type: filter
Since: 3.0.0
Source: includes/class-crp-core-query.php line 410
Parameters
| Type | Name | Description |
|---|---|---|
array | $tax_query | Array of tax_query parameters. |
\WP_Post | $source_post | Source Post instance. |
array | $args | Arguments array. |
Usage
add_filter( 'crp_query_tax_query', function($tax_query, $source_post, $args) {
// ...
return $tax_query;
} );