[memb_sso_login]
Description
Renders one button per configured provider, in stored order. Button text is the provider's Button Label, falling back to its Label. Each button starts the sign-in handshake for that provider.
The shortcode honors the module's Button Visibility setting. With visibility set to admin-login or hidden it renders nothing, the same as the automatic placements. Social providers render only when Enable OAuth2 Providers is turned on, and the shortcode outputs nothing when no providers qualify.
When Button Visibility is everywhere, buttons already render automatically on wp-login.php, on memb_login_form, and on WooCommerce login forms. This shortcode is for anywhere else: a landing page, a course gateway, a modal.
Shortcode Examples
[memb_sso_login]
Send members to a specific page after login:
[memb_sso_login redirect_to="/welcome/"]
Shortcode Parameters
redirect_to
Same-site URL to land on after login. Values pointing off-site are
dropped. Default: '', which sends the member to their dashboard.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | No |
| Nestable | No |
| Accepts formatting | No |
Hooks
wpal/torii/sso/buttons/allowed (filter, allowed, surface, visibility)
overrides whether buttons render on a given surface
(wp-login, login-form, woocommerce, or shortcode).