WordPress获取用户文章数量函数:get_usernumposts

文 / @WordPress主题

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()
添加UTHEME为好友
扫码添加UTHEME微信为好友
· 分享WordPress相关技术文章,主题上新与优惠动态早知道。
· 微信端最大WordPress社群,限时免费入群。