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

get_usernumposts( int $userid ): int

Retrieves the number of posts a user has written.


Description

Top ↑

See also


Top ↑

Parameters

$userid int Required
User to count posts for.

Top ↑

Return

int Number of posts the given user has written.


Top ↑

Source

File: wp-includes/deprecated.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
3.0.0 Use count_user_posts()
0.71 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.