top_ten_query_posts_pre_query
Filters the posts_pre_query of Top_Ten_Query after processing and before returning.
Type: filter
Since: 4.0.0
Source: includes/class-top-ten-core-query.php line 875
Parameters
| Type | Name | Description |
|---|---|---|
\WP_Post[] | $posts | Array of post data. |
\WP_Query | $query | The WP_Query instance. |
Usage
add_filter( 'top_ten_query_posts_pre_query', function($posts, $query) {
// ...
return $posts;
} );