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



get_usernumposts › WordPress Filter Hooks

Since4.3.1
Deprecatedn/a
apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only )
Parameters: (4)
  • (int) $count The user's post count.
    Required: Yes
  • (int) $userid User ID.
    Required: Yes
  • (string|array) $post_type Single post type or array of post types to count the number of posts for.
    Required: Yes
  • (bool) $public_only Whether to limit counted posts to public posts.
    Required: Yes
Defined at:
Codex:

Filters the number of posts a user has written.





Source

return apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only );