Shortcode Reference
Core customer-facing shortcodes, parameters, and rendering behavior.
This article lists the core customer-facing shortcodes, 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 sign-in pill (opens the sign-in overlay). Signed-in visitors see an avatar dropdown with the configured profile label, extra rows such as Meine Tickets and 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.aria_label— accessible menu name; default Benutzer-Menü.unstyled—yesto omit the styled shell; defaultno.
[unidy_user_menu profile_href="/profil" signin_href="/anmelden" profile_label="My profile" signin_label="Sign in" logout_label="Sign out" align="right"]Use Auth trigger patterns that match any custom signin_href. Header branding and labels vary by site. The signed-in dropdown also displays the visitor's name, email, and initials.
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.
| Attribute | Behavior |
|---|---|
fields | Comma-separated SDK field names, for example first_name,last_name,phone_number. Omitted or blank uses the standalone admin list. |
show_avatar | yes or no; overrides the module setting. |
autosave | yes or no; overrides the module setting. |
autosave_delay | Nonnegative milliseconds; overrides the module delay (normally 800). |
[unidy_profile fields="first_name,last_name,phone_number" show_avatar="no" autosave="yes" autosave_delay="1200"]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—cards,inline, orcompact; omit it to use the admin's default style.intro—yes(default) ornoto hide the intro block. The legacyhide_introname is not a current attribute.
[unidy_newsletter card="club_news" style="compact" intro="no"]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; uses the module setting when omitted. Set10explicitly to retain the legacy example.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.
Module configuration and shortcode overrides can change page sizes. For reproducible ticket placement set it explicitly, for example [unidy_tickets page_size="10" wallet_export="true"]; transaction and subscription renderers default to 10 items. Ticket admin defaults may differ by release. WooCommerce integrates into account and checkout flows without one of these shortcodes.