Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_usernumposts ›

Desde4.3.1
Obsoleton/a
apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only )
Parâmetros: (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
Definido em:
Codex:

Filters the number of posts a user has written.





Fonte

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