get_usernumposts
最后更新于:2021-11-27 00:12:37
apply_filters( ‘get_usernumposts’, int $count, int $userid, string|array $post_type, bool $public_only )
Filters the number of posts a user has written.
参数
- $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
-
(bool)
Whether to limit counted posts to public posts.
源文件
文件: gc-includes/user.php