Core Function
View Source on Trac ↗ get_usernumposts()
get_usernumposts( mixed $userid ) Retrieves the number of posts a user has written.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $userid int | User to count posts for. Required |
Return Value
(int)
Number of posts the given user has written.
Function Information
Since Version
0.71
Source File
wp-includes/deprecated.php
Advertisement