Filters the post counts by status for the current post type.
$countsstdClass$typestring$permstringwp-includes/post.php:3483wp_count_posts()wp-includes/post.php:3540wp_count_posts()<?php * @param stdClass $counts An object containing the current post_type's post * counts by status. * @param string $type Post type. * @param string $perm The permission to determine if the posts are 'readable' * by the current user. */ return apply_filters( 'wp_count_posts', $counts, $type, $perm );} /** * Counts number of attachments for the mime type(s). * * If you set the optional mime_type parameter, then an array will still beIntroduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.