crp_query_posts_where_match
Filter the MATCH clause of the WHERE clause of the query.
Type: filter
Since: 4.0.0
Source: includes/class-crp-core-query.php line 908
Parameters
| Type | Name | Description |
|---|---|---|
string |
$match_clause |
The MATCH section of the WHERE clause of the query. |
string |
$where |
The WHERE clause of the query. |
\WP_Query|\CRP_Query |
$query |
The WP_Query or CRP_Query instance. |
CRP_Core_Query |
$instance |
The CRP_Core_Query instance. |
Usage
add_filter( 'crp_query_posts_where_match', function($match_clause, $where, $query, $instance) {
// ...
return $match_clause;
} );