WordPress at a glance
filter is not described

get_usernumposts filter-hook . WP 2.7.0

Filters the number of posts a user has written.

Usage

add_filter( 'get_usernumposts', 'filter_function_name_7976', 10, 4 );
function filter_function_name_7976( $count, $userid, $post_type, $public_only ){
	// filter...

	return $count;
}
$count(int)
The user's post count.
$userid(int)
User ID.
$post_type(string/array)
Single post type or array of post types to count the number of posts for.
$public_only(true/false)
Whether to limit counted posts to public posts.

Notes

  • Since 4.1.0 Added $post_type argument.
  • Since 4.3.1 Added $public_only argument.

Where the hook is called

count_user_posts()
wp-includes/user.php 381
return apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only );

Where the hook is used (in WP core)

Does not used.