Recent

crp_query_pre_get_match_sql filter

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 559

Parameters

TypeNameDescription
string$match_sqlThe match SQL.
\WP_Post$source_postSource Post instance.
array$query_argsArguments array.

Usage

add_filter( 'crp_query_pre_get_match_sql', function($match_sql, $source_post, $query_args) {
    // ...
    return $match_sql;
} );