crp_query_is_matching_content
Filters whether the query is matching the post content.
Type: filter
Since: 4.4.0
Source: includes/class-crp-core-query.php line 1506
Parameters
| Type | Name | Description |
|---|---|---|
bool |
$matching |
Whether content is being matched. |
array |
$query_args |
Query arguments. |
CRP_Core_Query |
$instance |
Current instance. |
Usage
add_filter( 'crp_query_is_matching_content', function($matching, $query_args, $instance) {
// ...
return $matching;
} );