get_usernumposts

函数


get_usernumposts ( $userid )
参数
  • (int)
    $userid
    User to count posts for.
    Required:
返回值
  • (int) Number of posts the given user has written.
相关
  • count_user_posts()
定义位置
  • wp-includes/deprecated.php
    , line 2438
引入
0.71
弃用
3.0.0

Retrieves the number of posts a user has written.

function get_usernumposts( $userid ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' );
	return count_user_posts( $userid );
}