tptn_post_count_only
Returns the post count.
Type: filter
Since: 2.6.0
Source: includes/class-counter.php line 314
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;
} );