Description
This shortcode will show a table where users can view their current subscription details.
Shortcode Attributes
Attribute | Type | Required | Default | Description |
---|---|---|---|---|
classes |
string | No | table table-condensed | Option to set custom CSS classes for the table element. |
date_format |
string | No | - | Date format to use. Defaults to the format you have set in your WordPress settings. |
CSS Styling
// The table table#mycred-stripe-my-subscription { } // The table columns table tr .mycred-stripe-sub-plan { } table tr .mycred-stripe-sub-status { } table tr .mycred-stripe-sub-start { } table tr .mycred-stripe-sub-end { } table tr .mycred-stripe-sub-amount { }
Examples
Example 1: Default usage.
[mycred_stripe_subscription]
Example 2: Shows a custom message to users who do not yet have a subscription. Supports HTML elements.
[mycred_stripe_subscription]You do not yet have a subscription.[/mycred_stripe_subscription]