WordPress at a glance
function is not described

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

  • See: count_user_posts()

Changelog

Since 0.71 Introduced.
Deprecated Since 3.0.0 Use count_user_posts()

Code of get_usernumposts() WP 5.7

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