apply_filters( 'wp_count_posts', object $counts, string $type, string $perm )

Modify returned post counts by status for the current post type.

Parameters Parameters


(object) An object containing the current post_type's post counts by status.


(string) Post type.


(string) The permission to determine if the posts are 'readable' by the current user.

Top ↑

Source Source

File: wp-includes/post.php

View on Trac

Top ↑

Changelog Changelog

Version Description
3.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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