Recent

top_ten_query_the_posts filter

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

TypeNameDescription
\WP_Post[]$postsArray of post objects.
array$argsArguments array.

Usage

add_filter( 'top_ten_query_the_posts', function($posts, $args) {
    // ...
    return $posts;
} );