On this page
apply_filters( 'get_usernumposts', int $count, int $userid, string|array $post_type, bool $public_only )
Filters the number of posts a user has written.
Parameters
$countint-
The user's post count.
$useridint-
User ID.
$post_typestring|array-
Single post type or array of post types to count the number of posts for.
$public_onlybool-
Whether to limit counted posts to public posts.
Source
File: wp-includes/user.php. View all references
return apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only );
Related
Used By
| Used By | Description |
|---|---|
| count_user_posts() wp-includes/user.php | Gets the number of posts a user has written. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_usernumposts