Shortcodes and Gutenberg Blocks
Ultimate Multisite provides shortcodes for checkout, login, customer account, and site-management interfaces. Every shortcode below is also available as a corresponding Ultimate Multisite Gutenberg block. Use the block editor when you want a visual configuration experience, or use the shortcode in the Classic Editor, a shortcode-capable widget, template content, or custom page builder.
The shortcode and its matching block provide the same feature and settings. Settings selected in a Gutenberg block are rendered as shortcode attributes when the page is saved.
Building custom customer dashboards and account pages
Create a WordPress page and combine the account-focused blocks or shortcodes in the order that suits your customer journey. For example, a compact customer dashboard might contain:
[wu_my_sites columns="3"]
[wu_current_membership]
[wu_invoices limit="5"]
[wu_site_actions]
For a site-specific account page, use My Sites to let a customer choose a site, then add Site, Account Summary, Limits & Quotas, Domains, and Actions to the destination page. Choose the destination page in the My Sites block's custom management-page setting, and use the relevant page setting in Site for its breadcrumbs.
Shortcodes that show customer, membership, billing, or site data use the current logged-in customer and selected site. Place them on pages customers can access after signing in. Use page IDs for settings that select another page, such as custom_manage_page, breadcrumbs_my_sites_page, and redirect_after_delete.
Checkout
Checkout — [wu_checkout]
Adds a checkout form to the page.
| Parameter | Description | Accepted values | Default |
|---|---|---|---|
slug | The checkout form slug. | Text | main-form |
defer | Outputs a cache-safe placeholder, then loads fresh checkout markup after visitor intent. | 0, 1 | — |
defer_trigger | Determines when a deferred form requests its live markup. | viewport, click, load | viewport |
Authentication and content
Login Form — [wu_login_form]
Adds a login form to the page.
| Parameter | Description | Accepted values | Default |
|---|---|---|---|
display_title | Shows or hides the title. | 0, 1 | 1 |
title | Login form title. | Text | Login |
redirect_type | Selects where to send the customer after login. | default, customer_site, main_site | default |
customer_redirect_path | Path to use when redirecting to the customer site. | Text | /wp-admin |
main_redirect_path | Path to use when redirecting to the main site. | Text | /wp-admin |
label_username | Username field label; leave blank to hide it. | Text | Username or Email Address |
placeholder_username | Username field placeholder. | Text |