This function has been deprecated. Use count_user_posts() instead.

get_usernumposts( int $userid )

Retrieves the number of posts a user has written.


Description

See also


Parameters

$userid

(Required) User to count posts for.


Return

(int) Number of posts the given user has written.


Source

File: wp-includes/deprecated.php

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


Changelog

Changelog
Version Description
WP-3.0.0 Use count_user_posts()
WP-0.71 Introduced. This function has been deprecated. Use count_user_posts() instead.