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
| Type | Name | Description |
|---|---|---|
int|string|\WP_Post | $post | Post ID or WP_Post object. |
int|string | $blog_id | Blog ID. |
array | $args | Additional arguments. |
Usage
add_filter( 'tptn_post_count', function($post, $blog_id, $args) {
// ...
return $post;
} );