WordPress at Your Fingertips
filter is not described

wp_count_posts filter-hook . WP 3.7.0

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


add_filter( 'wp_count_posts', 'filter_function_name_5934', 10, 3 );
function filter_function_name_5934( $counts, $type, $perm ){
	// filter...

	return $counts;
An object containing the current post_type's post counts by status.
Post type.
The permission to determine if the posts are 'readable' by the current user.


Since 3.7.0 Introduced.

Where the hook is called

wp-includes/post.php 2880
return apply_filters( 'wp_count_posts', $counts, $type, $perm );
wp-includes/post.php 2842
return apply_filters( 'wp_count_posts', $counts, $type, $perm );

Where in WP core the hook is used WordPress

Usage not found.