Recent

tptn_post_count_onlyfilter

tptn_post_count_only

Filters the post count returned for a post.

Type: filter
Since: 2.6.0
Source: includes/class-counter.php line 321

Parameters

Type Name Description
int|string $post_count Post count.
mixed $id Post ID.
string $counter Which count to return? total, daily or overall.
int $blog_id Blog ID.

Usage

add_filter( 'tptn_post_count_only', function($post_count, $id, $counter, $blog_id) {
    // ...
    return $post_count;
} );