WordPress at a glance
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_8689', 10, 3 );
function filter_function_name_8689( $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.

Список изменений

С версии 3.7.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WordPress

Использование не найдено.