get_usernumposts()
Устарела с версии 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.
Заметки
- Смотрите: count_user_posts()
Список изменений
| С версии 0.71 | Введена. |
| Устарела с 3.0.0 | Use count_user_posts() |
Код get_usernumposts() get usernumposts WP 6.9.1
function get_usernumposts( $userid ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' );
return count_user_posts( $userid );
}