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