crp_query_args_before
Applies filters to the query arguments before executing the query.
This function allows developers to modify the query arguments before the query is executed.
Type: filter
Since: 3.5.0
Source: includes/class-crp-core-query.php line 262
Parameters
| Type | Name | Description |
|---|---|---|
array | $args | The query arguments. |
\WP_Post | $source_post | The source post. |
Usage
add_filter( 'crp_query_args_before', function($args, $source_post) {
// ...
return $args;
} );