WordPress获取用户文章数量函数:get_usernumposts
WordPress函数get_usernumposts用于获取用户发表的文章总数,自3.0.0版本起,已不建议使用get_usernumposts(),请换用count_user_posts()函数。
get_usernumposts( int $userid )
函数参数
$userid
整数
用户ID
扩展阅读
get_usernumposts()函数位于:wp-includes/deprecated.php
相关函数:
- count_user_posts()
本网站文章仅供交流学习 ,不作为商用, 版权归属原作者,部分文章推送时未能及时与原作者取得联系,若来源标注错误或侵犯到您的权益烦请告知,我们将立即删除.