wpseek.com
A WordPress-centric search engine for devs and theme authors



get_usernumposts › WordPress Function

Since0.71
Deprecated3.0.0
get_usernumposts ( $userid )
Parameters:
  • (int) $userid User to count posts for.
    Required: Yes
See:
Returns:
  • (int) Number of posts the given user has written.
Defined at:
Codex:

Retrieves the number of posts a user has written.



Source

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