WordPress Plugin
Shortcode Reference
All shortcodes exposed by the plugin, their parameters, and where they render.
This article lists every shortcode the plugin exposes, plus its accepted parameters. Drop a shortcode into any WordPress page, post, or block that supports it.
Auth: user menu widget
[unidy_user_menu] β Signed-out visitors see a TowersID pill (opens the sign-in overlay). Signed-in visitors see an avatar dropdown with Mein Konto, Meine Tickets, Newsletter, and Abmelden.
Attributes:
profile_hrefβ default/profil. Where the profile menu item points.
signin_hrefβ default/login. Where the anonymous pill points.
profile_labelβ default Mein Profil. Label on the profile menu item.
logout_labelβ default Abmelden. Label on the logout row.
signin_labelβ default Anmelden. Label on the signed-out pill.
alignβleftorright(default). Which side the dropdown expands toward.
Profile: standalone editor
[unidy_profile] β Renders the profile editor inline. Uses the field list configured under Unidy β Profile β Standalone fields. Anonymous visitors see a sign-in prompt.
No attributes β configuration is driven by the admin screen.
Newsletter: signup form
[unidy_newsletter] β Signup form for anonymous visitors, preference center for signed-in visitors (depending on the Signed-in behaviour setting).
Attributes:
cardβ restrict to a single card by internal name (e.g.card="club_news").
styleβ override the admin's default style:default(full) orcompact(single card).
hide_introβtrueto hide the intro text block above the form.
Newsletter: preference center
[unidy_newsletter_preferences] β Standalone preference center for signed-in visitors. Anonymous visitors see the not-identified fallback message.
No attributes.
Tickets
[unidy_tickets] β Renders the visitor's active tickets. Signed-out visitors see an empty state with a sign-in CTA.
Attributes:
page_sizeβ number of tickets per page (default 10).
wallet_exportβtrueorfalse. Show the Apple/Google Wallet buttons on each ticket card.
Transactions
[unidy_transactions] β Renders the visitor's payment history with a status filter (all / paid / pending / refunded).
Attributes:
page_sizeβ number of transactions per page (default 10).
Subscriptions
[unidy_subscriptions] β Renders the visitor's active recurring memberships with a Verwalten button per row.
Attributes:
page_sizeβ number of subscriptions per page (default 10).
Best practices
- Keep only one instance of a shortcode per page. Duplicates render but consume extra SDK bandwidth.
- Test each shortcode in both anonymous and signed-in states before publishing.
- If you insert a shortcode into a page cached by WP Rocket or a similar cache plugin, purge the cache after publishing so the shortcode is re-processed.
