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



get_usernumposts ›

Desde0.71
Obsoleto3.0.0
get_usernumposts ( $userid )
Parâmetros:
  • (int) $userid User to count posts for.
    Required: Yes
Ver:
Retorna:
  • (int) Number of posts the given user has written.
Definido em:
Codex:

Retrieves the number of posts a user has written.



Fonte

function get_usernumposts( $userid ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' );
	return count_user_posts( $userid );
}