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

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


Parameters

$counts

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

$type

Post type.

$perm

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


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.7.0 Introduced.