get_usernumposts – filter
Filters the number of posts a user has written.
Parameters
- .
- ( 2.7.0 ) . .
- Added
- ( 4.1.0 ) `$post_type` argument. . . .
- Added
- ( 4.3.1 ) `$public_only` argument. . . .
- ( int ) $count The user’s post count. . . .
- ( int ) $userid User ID. . . .
- $post_type
- ( string|array ) Single post type or array of post types to count the number of posts for. . . .
- ( bool ) $public_only Whether to limit counted posts to public posts. . . .