00Days
00Hours
00Mins
00Secs
Special Deal: Save 50% on Magic Link PRO Give hassle-free access to your users at half the price.

Everyday Use

Use Magic Link Form with Shortcode

Use the shortcode when you want a custom login page instead of the default WordPress login screen. It renders a form where visitors request a passwordless email sign-in link.

Shortcode

[magic_link_form]

The aliases [magic-link] and [magic_link] also work.

Attributes

The shortcode accepts two attributes:

  • redirect — a URL to send users to after they log in.
  • show_registrationtrue or false to show or hide the account creation option.

Examples

  • Basic form: [magic_link_form]
  • Redirect users after login: [magic_link_form redirect="/my-account"]
  • Hide the registration option: [magic_link_form show_registration="false"]

Where to Add It

  • Any WordPress page or post
  • A Shortcode block in the block editor
  • Classic editor content

After publishing the page, visitors can request a magic link directly from that page.

Was this page helpful?

Previous
Email magic-link login (passwordless)