Recent

tptn_post_count filter

tptn_post_count

Return the formatted post count for the supplied ID.

Type: filter
Since: 4.0.0
Source: includes/class-counter.php line 240

Parameters

TypeNameDescription
int|string|\WP_Post$postPost ID or WP_Post object.
int|string$blog_idBlog ID.
array$argsAdditional arguments.

Usage

add_filter( 'tptn_post_count', function($post, $blog_id, $args) {
    // ...
    return $post;
} );