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 601
Parameters
| Type | Name | Description |
|---|---|---|
array |
$match_fields |
Array of fields to be matched. |
\WP_Post |
$source_post |
Source Post instance. |
array |
$query_args |
Arguments array. |
Usage
add_filter( 'crp_query_posts_match_fields', function($match_fields, $source_post, $query_args) {
// ...
return $match_fields;
} );