crp_query_date_query
Filter the date_query passed to WP_Query.
Type: filter
Since: 3.3.0
Source: includes/class-crp-core-query.php line 444
Parameters
| Type | Name | Description |
|---|---|---|
array | $date_query | Array of date parameters to be passed to WP_Query. |
array | $args | Arguments array. |
Usage
add_filter( 'crp_query_date_query', function($date_query, $args) {
// ...
return $date_query;
} );