top_ten_query_the_posts
Filter array of WP_Post objects before it is returned to the Top_Ten_Core_Query instance.
Type: filter
Since: 3.0.0
Source: includes/class-top-ten-core-query.php line 937
Parameters
| Type | Name | Description |
|---|---|---|
\WP_Post[] | $posts | Array of post objects. |
array | $args | Arguments array. |
Usage
add_filter( 'top_ten_query_the_posts', function($posts, $args) {
// ...
return $posts;
} );