crp_query_pro_posts_join
Filters the JOIN clause added by the Pro taxonomy weighting query.
Type: filter
Since: 4.0.0
Source: includes/pro/class-query-modifier.php line 967
Parameters
| Type | Name | Description |
|---|---|---|
string |
$join |
The JOIN clause of the query. |
\WP_Query |
$query |
The WP_Query instance. |
array |
$weights |
Weights applied to each taxonomy. |
Usage
add_filter( 'crp_query_pro_posts_join', function($join, $query, $weights) {
// ...
return $join;
} );