[total_users]

Shortcode displays the count of users having each role, or the count of all users.

Attributes

role
(optional) User role to count users for. If empty – total count of all users is displayed.
Default: None

Examples

Example #1

[total_users before="Total users: "]

Output #1

Total users: 1

Example #2

[total_users role="customer" before="Total customers: " on_zero="No customers."]

Output #2

No customers.
No comments yet.

Leave a Reply