Skip to main content

Shortcodes

Gatey provides WordPress shortcodes to embed Cognito-powered authentication widgets or display user attributes.


[gatey]

Embeds an <Authenticator> anywhere: in posts, popups, or Elementor templates.

Attributes

AttributeValuesDescription
id (required)Gutenberg pattern IDWhich saved Gutenberg pattern (with an <Authenticator>) to render. Not for event targeting—use a CSS id for JS hooks.
screensignIn, signUp, editAccount, setupTotp, forgotPassword, changePasswordInitial screen to show.
variationdefault, modalInline widget vs. modal overlay.
colormodelight, dark, systemColour scheme selection.
languagear, de, en, es, fr, he, hi, id, it, ja, ko, kr, nb, nl, pl, pt, ru, sv, th, tr, ua, zhForce the UI language. Omit to let the browser/OS preference decide.
directionauto (default), ltr, rtlText direction.
showopentrue, falseIf true, renders a button; clicking it opens the Authenticator with the configured screen.
openstringLabel for the open button (used when showopen is enabled).
signinginstringMessage displayed during the signing-in state.
signingoutstringMessage displayed during sign-out.
redirectingstringMessage shown while redirecting after sign-in/out.

Example

[gatey id="12" variation="modal" colormode="dark"]

[gatey-account]

Outputs a Cognito user attribute inline—useful for greetings, dashboards, or conditional content.

Attributes

AttributeValuesDescription
componentdiv, p, span, h1h6HTML tag to render. Defaults to div.
attributeAny standard Cognito field (e.g., email, given_name) or customThe profile field to print.
customAttribute name without the custom: prefixRequired when attribute="custom".

Examples

Welcome back, [gatey-account attribute="given_name"]!
Your tier: [gatey-account attribute="custom" custom="membershipTier"]