get_usernumposts()WP 0.71

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use count_user_posts() instead.

Retrieves the number of posts a user has written.

No Hooks.

Return

Int. Number of posts the given user has written.

Usage

get_usernumposts( $userid );
$userid(int) (required)
User to count posts for.

Notes

Changelog

Since 0.71 Introduced.
Deprecated since 3.0.0 Use count_user_posts()

get_usernumposts() code WP 6.4.3

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