[memb_credits_balance]
Description
Outputs the user's current credit balance wrapped in a
<span class="torii-credits-balance"> element. The balance is read
through the credits API, which reflects all grants, spends, and
expirations.
Renders nothing when there is no valid user (logged out).
Shortcode Examples
You have [memb_credits_balance] credits remaining.
Another user's balance:
[memb_credits_balance user_id="123"]
Shortcode Parameters
user_id
User ID whose balance is displayed. Default: current user ID.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | No |
| Nestable | No |
| Accepts formatting | No |