Recent

crp_query_posts_match_fields filter

crp_query_posts_match_fields

Filter the fields that are to be matched.

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

Parameters

TypeNameDescription
array$match_fieldsArray of fields to be matched.
\WP_Post$source_postSource Post instance.
array$query_argsArguments array.

Usage

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