Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/user.php | apply_filters | 573 | /** * 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. */ |
Hook Parameters
Parameter 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. |