Recent

tptn_post_count_only filter

tptn_post_count_only

Returns the post count.

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

Parameters

TypeNameDescription
int|string$post_countPost count.
mixed$idPost ID.
string$counterWhich count to return? total, daily or overall.
int$blog_idBlog ID.

Usage

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