wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_usernumposts › WordPress过滤钩子

Since4.3.1
已弃用n/a
› apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only )
参数: (4)
  • () count The user's post count as a numeric string.
    Required: Yes
  • () userid User ID.
    Required: Yes
  • () post_type Single post type or array of post types to count the number of posts for.
    Required: Yes
  • () public_only Whether to limit counted posts to public posts.
    Required: Yes
定义在:
文档:

Filters the number of posts a user has written.





源码

return apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only );