Filter hook 'get_usernumposts'

in WP Core File wp-includes/user.php at line 603

Description

Filters the number of posts a user has written.

Occurrences

Filename Line Number
wp-includes/user.php 603

Parameters

Type Name Description
int $count The user's post count.
int $userid User ID.
string|array $post_type Single post type or array of post types to count the number of posts for.
bool $public_only Whether to limit counted posts to public posts.

PHP Doc

/**
	 * Filters the number of posts a user has written.
	 *
	 * @since 2.7.0
	 * @since 4.1.0 Added `$post_type` argument.
	 * @since 4.3.1 Added `$public_only` argument.
	 *
	 * @param int          $count       The user's post count.
	 * @param int          $userid      User ID.
	 * @param string|array $post_type   Single post type or array of post types to count the number of posts for.
	 * @param bool         $public_only Whether to limit counted posts to public posts.
	 */