apply_filters( ‘wp_count_posts’, stdClass $counts, string $type, string $perm )

In this article

Filters the post counts by status for the current post type.

Parameters

$countsstdClass
An object containing the current post_type’s post counts by status.
$typestring
Post type.
$permstring
The permission to determine if the posts are 'readable' by the current user.

Source

return apply_filters( 'wp_count_posts', $counts, $type, $perm );

Changelog

VersionDescription
3.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.