Recent

crp_query_match_sql filter

crp_query_match_sql

Filter the match SQL.

Type: filter
Since: 4.0.0
Source: includes/class-crp-core-query.php line 635

Parameters

TypeNameDescription
string$matchThe match SQL.
\WP_Post$source_postSource Post instance.
array$query_argsArguments array.
string$match_fieldsThe fields to be matched.
string$stuffThe content of the fields to be matched.

Usage

add_filter( 'crp_query_match_sql', function($match, $source_post, $query_args, $match_fields, $stuff) {
    // ...
    return $match;
} );