guet_usernumposts( int   $userid ): int

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

Retrieves the number of posts a user has written.

Description

See also

Parameters

$userid int required
User to count posts for.

Return

int Number of posts the guiven user has written.

Source

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

Changuelog

Versionen Description
3.0.0 Use count_user_posts()
0.71 Introduced.

User Contributed Notes

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