crp_query_pre_get_match_sql
Filter the source post before getting the match SQL.
Type: filter
Since: 3.5.0
Source: includes/class-crp-core-query.php line 560
Parameters
| Type | Name | Description |
|---|---|---|
string |
$match_sql |
The match SQL. |
\WP_Post |
$source_post |
Source Post instance. |
array |
$query_args |
Arguments array. |
Usage
add_filter( 'crp_query_pre_get_match_sql', function($match_sql, $source_post, $query_args) {
// ...
return $match_sql;
} );