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_registration—trueorfalseto 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.