Filters the post counts by status for the current post type.
$countsstdClass
$typestring
$permstring
'readable' by the current user.return apply_filters( 'wp_count_posts', $counts, $type, $perm );
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_count_posts