Recent

top_ten_query_posts_pre_query filter

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

TypeNameDescription
\WP_Post[]$postsArray of post data.
\WP_Query$queryThe WP_Query instance.

Usage

add_filter( 'top_ten_query_posts_pre_query', function($posts, $query) {
    // ...
    return $posts;
} );