Recent

crp_query_match_sqlfilter

crp_query_match_sql

Filter the match SQL.

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

Parameters

Type Name Description
string $match The match SQL.
\WP_Post $source_post Source Post instance.
array $query_args Arguments array.
string $match_fields The fields to be matched.
string $stuff The 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;
} );