Recent

get_tptn_postsfilter

get_tptn_posts

Filter array of post IDs or objects.

Type: filter
Since: 3.0.0
Source: includes/frontend/class-display.php line 564

Parameters

Type Name Description
\WP_Post[]|int[] $filtered_posts Array of post objects or post IDs after filtering.
array $args Arguments to retrieve posts.

Usage

add_filter( 'get_tptn_posts', function($filtered_posts, $args) {
    // ...
    return $filtered_posts;
} );