Title: Total User Count Shortcode
Author: Morgan Hvidt
Published: <strong>2018 年 6 月 8 日</strong>
Last modified: 2024 年 4 月 6 日

---

搜索插件

![](https://ps.w.org/total-user-count-shortcode/assets/banner-772x250.png?rev=2351347)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/total-user-count-shortcode/assets/icon-256x256.png?rev=2351347)

# Total User Count Shortcode

 作者：[Morgan Hvidt](https://profiles.wordpress.org/morganhvidt/)

[下载](https://downloads.wordpress.org/plugin/total-user-count-shortcode.zip)

 * [详情](https://cn.wordpress.org/plugins/total-user-count-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/total-user-count-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/total-user-count-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/total-user-count-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/total-user-count-shortcode/)

## 描述

Total User Count Shortcode provides a simple way to display the number of registered
users on your WordPress site. It’s a lightweight plugin with no admin screen, offering
a straightforward shortcode: `[total_user_count]`.

### Features:

 * **Display Total Users**: Use `[total_user_count]` to show the total number of
   users.
 * **Filter by Role**: Specify a user role to display counts for, e.g., `[total_user_count
   role="customer"]` for WooCommerce customers.
 * **Combine Roles**: Tally multiple roles together, e.g., `[total_user_count role
   ="subscriber, author"]`.
 * **Support for Custom Roles**: Works with custom user roles added by other plugins.

### Common WordPress User Roles:

 * subscriber
 * author
 * editor
 * contributor
 * administrator
 * customer (WooCommerce)

### Social Proof:

Showcase your site’s popularity by displaying the number of users anywhere on your
site using the shortcode.

## 屏幕截图

 * [[
 * Total User Count Shortcode display on page
 * [[
 * Total User Count shortcode for WordPress user roles.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Use the shortcode `[total_user_count]` in your posts, pages, or widgets to display
    the user count.
 4. No further configuration is needed.

## 常见问题

### Can I use the shortcode anywhere?

Yes, the shortcode can be placed in any post, page, or widget area, and within any
content like paragraphs or headings (H1, H2, etc.).

## 评价

![](https://secure.gravatar.com/avatar/a4babfd10111b95936a6bea8d17e03f91cc74cc6f0a0654a3c120f2199d114d5?
s=60&d=retro&r=g)

### 󠀁[Grazie!](https://wordpress.org/support/topic/grazie-24/)󠁿

 [Betty_](https://profiles.wordpress.org/betty_/) 2023 年 11 月 11 日

Ti ringrazio per questo plugin semplice e leggero, era proprio quello che cercavo!

![](https://secure.gravatar.com/avatar/ac08174333f565d534e5f882929a8e42a37075d619304b054b9ebc585abe3483?
s=60&d=retro&r=g)

### 󠀁[Вывод зарегестрированных пользователей](https://wordpress.org/support/topic/%d0%b2%d1%8b%d0%b2%d0%be%d0%b4-%d0%b7%d0%b0%d1%80%d0%b5%d0%b3%d0%b5%d1%81%d1%82%d1%80%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%bd%d1%8b%d1%85-%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d0%be%d0%b2%d0%b0%d1%82%d0%b5/)󠁿

 [imbattleman](https://profiles.wordpress.org/imbattleman/) 2023 年 9 月 29 日

Отличный плагин. Выводит количество зарегистрированных пользователей. Остальные 
функции не тестировал.

![](https://secure.gravatar.com/avatar/c9c22a8ceb313de2515bbae5206b1aad857b5f4dedfa466bcdc220a009c52da7?
s=60&d=retro&r=g)

### 󠀁[Worked Great!](https://wordpress.org/support/topic/worked-great-243/)󠁿

 [TMoney](https://profiles.wordpress.org/tylermowreader/) 2022 年 2 月 23 日

Easy peasy! Works as designed. Thank you!

![](https://secure.gravatar.com/avatar/a72905b41e0041b2deb835d39975a8faa0882155ee4cd10ef549a30330b6fb42?
s=60&d=retro&r=g)

### 󠀁[Amazingly simple, Good and fast support](https://wordpress.org/support/topic/amazingly-simple-good-and-fast-support/)󠁿

 [Safeunderdark](https://profiles.wordpress.org/safeunderdark/) 2020 年 11 月 10
日 1 回复

I encountered a problem and got my answer within 15 minutes. Now that is fast! Unfortunate
some themes do not support shortcodes everywhere, but that is not this plugin’s 
fault. Problem was fixed within 30 minutes! How is that for service 😀 Good and 
simple plugin

![](https://secure.gravatar.com/avatar/255c9dbe08c30302dfd6dcaac4a7b16d2d1693042cd9b16ea036511822fc6ad1?
s=60&d=retro&r=g)

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-1528/)󠁿

 [killjack](https://profiles.wordpress.org/killjack/) 2019 年 9 月 21 日 1 回复

Very useful

![](https://secure.gravatar.com/avatar/9974321912e81db92d4afbec916f481bb554fbc41a268d20937d41dd5c7c8ea6?
s=60&d=retro&r=g)

### 󠀁[Works Perfectly 9th June 2019](https://wordpress.org/support/topic/works-perfectly-9th-june-2019/)󠁿

 [designserve](https://profiles.wordpress.org/designserve/) 2019 年 6 月 9 日

Brilliant! So easy! 9th July 2019. Latest WordPress, Buddypress, Multisite, PHP7.1
Thank you!

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/total-user-count-shortcode/reviews/)

## 贡献者及开发者

「Total User Count Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Morgan Hvidt ](https://profiles.wordpress.org/morganhvidt/)

[帮助将「Total User Count Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/total-user-count-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/total-user-count-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/total-user-count-shortcode/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/total-user-count-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/total-user-count-shortcode/)。

## 更新日志

#### 1.1.2

 * Count (sum) multiple user roles within one shortcode.
 * Tested and ready for WordPress 6.5
 * Ready for PHP 8.3

#### 1.1.1

 * Tested and ready for WordPress 5.6

#### 1.1.0

 * New: support for getting specific user role counts e.g [total_user_count role
   =”subscriber”]
 * Tested and ready for WordPress 5.5

#### 1.0.5

 * Tested and ready for WordPress 5.3

#### 1.0.4

 * Tested and ready for WordPress 5.2

#### 1.0.3

 * Tested and ready for WordPress 5.1

#### 1.0.1

 * Tested with Gutenberg and WordPress 5.0

#### 1.0.0

 * Total User Count Shortcode goes live on WordPress.org

## 额外信息

 *  版本 **1.1.2**
 *  最后更新：**2 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/total-user-count-shortcode/)
 * 标签
 * [roles](https://cn.wordpress.org/plugins/tags/roles/)[user count](https://cn.wordpress.org/plugins/tags/user-count/)
 *  [高级视图](https://cn.wordpress.org/plugins/total-user-count-shortcode/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/total-user-count-shortcode/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/total-user-count-shortcode/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/total-user-count-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/total-user-count-shortcode/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/total-user-count-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/total-user-count-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/total-user-count-shortcode/reviews/)

## 贡献者

 *   [ Morgan Hvidt ](https://profiles.wordpress.org/morganhvidt/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/total-user-count-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://morganhvidt.com/donate)