The Patron history block and shortcode display a list of patronage tier(s) subscribed per period.
Block options
(Coming soon)
Shortcode options
You can also use the [patronstips_patron_history] shortcode to display a list of your patrons and use this table to configure it:
| Attribute | Expected value |
|---|---|
| patron_id | Patron ID (integer). Display this patron’s history. Default to current. |
| user_id | User ID (integer) or user email. If the “patron_id” parameter is missing, you can use this parameter instead. Default to current user. |
| tier_ids | Tier ID(s) (comma separated) to display history only for these tiers. |
| active | Set it to 1 to hide entries that have been manually deactivated, 0 to display deactivated entries only, or leave it empty to display both. Default: 1. |
| order_by | Sort the post list by parameters (comma separated). Possible values: id, patron_id, tier_id, order_id, date_start, date_end, period_start, period_start, period_end, active. Default: patron_id, date_start, date_end, tier_id. |
| order | Possible values are desc (descending: highest to lowest) or asc (ascending: lowest to highest). Designates the ascending or descending order of the “order_by” parameter. You must specify the “order_by” parameter (see above). Default: desc. |
| per_page | Set the number of posts (integer) you want to display before “Load more”. Default: 12. |
| columns | Ordered comma-separated list of columns to display: start, end, period, tier, price, actions. Default: period, end, tier, price, actions. |
Shortcode example
Display your patrons’ history table with the following columns: period, tier, price.
[patronstips_patron_history columns="period, tier, price"]
Display the history table for patron with ID “88”. Only display the entries for tier with ID “3”.
[patronstips_patron_history patron_id" tier_ids="3"]
