get_usernumposts()
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() |
get_usernumposts() get usernumposts code WP 6.7.1
function get_usernumposts( $userid ) { _deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' ); return count_user_posts( $userid ); }