get_usernumposts()WP 0.71

Устарела с версии 3.0.0. Больше не поддерживается и может быть удалена. Используйте count_user_posts().

Retrieves the number of posts a user has written.

Хуков нет.

Возвращает

int. Number of posts the given user has written.

Использование

get_usernumposts( $userid );
$userid(int) (обязательный)
User to count posts for.

Заметки

Список изменений

С версии 0.71 Введена.
Устарела с 3.0.0 Use count_user_posts()

Код get_usernumposts() WP 6.4.3

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