Used By
Used By | Description |
---|---|
wp-includes/post.php: wp_count_posts() | Count number of posts of a post type and if user has permissions to view. |
Modify returned post counts by status for the current post type.
(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.
File: wp-includes/post.php
Version | Description |
---|---|
3.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_count_posts