Used By
Used By | Description |
---|---|
wp-includes/user.php: count_user_posts() | Number of posts user has written. |
Filters the number of posts a user has written.
(int) The user's post count.
(int) User ID.
(string|array) Single post type or array of post types to count the number of posts for.
(bool) Whether to limit counted posts to public posts.
File: wp-includes/user.php
Version | Description |
---|---|
4.3.1 | Added $public_only argument. |
4.1.0 | Added $post_type argument. |
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_usernumposts