apply_filters( 'wp_count_posts', object $counts, string $type, string $perm )
Modify returned post counts by status for the current post type.
Parameters
- $counts
-
(object) An object containing the current post_type's post counts by status.
- $type
-
(string) Post type.
- $perm
-
(string) The permission to determine if the posts are 'readable' by the current user.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_count_posts