Beschrijving
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:
- abonnee
- auteur
- redacteur
- bijdrager
- beheerder
- customer (WooCommerce)
Social Proof:
Showcase your site’s popularity by displaying the number of users anywhere on your site using the shortcode.
Schermafbeeldingen
Installatie
- Upload the plugin files to the
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Use the shortcode
[total_user_count]
in your posts, pages, or widgets to display the user count. - No further configuration is needed.
FAQ
-
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.).
Beoordelingen
Bijdragers & ontwikkelaars
“Total User Count Shortcode” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Total User Count Shortcode” naar jouw taal.
Interesse in de ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
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
- Getest en klaar voor WordPress 5.6
1.1.0
- New: support for getting specific user role counts e.g [total_user_count role=”subscriber”]
- Getest en klaar voor WordPress 5.5
1.0.5
- Getest en klaar voor WordPress 5.3
1.0.4
- Getest en klaar voor WordPress 5.2
1.0.3
- Getest en klaar voor WordPress 5.1
1.0.1
- Getest en klaar voor WordPress 5.0 en Gutenberg
1.0.0
- Total User Count Shortcode goes live on WordPress.org