Integrations
Magic Links in Membership & LMS Emails (MemberPress, LearnDash…)
Members and students who click through from a membership or course email usually hit a login form and a password they set minutes ago and cannot recall — and most abandon there. Magic Link's membership and LMS integrations (PRO) let you drop a {magic_link} login link into MemberPress, Paid Memberships Pro, LearnDash, LifterLMS, and Tutor LMS emails, so recipients land signed in exactly where the email points them. Each integration activates on its own when its host plugin is present; you add the merge tag to the email templates you care about.
PRO feature
The MemberPress, Paid Memberships Pro, LearnDash, LifterLMS, and Tutor LMS integrations are part of Magic Link PRO — their code ships only in the PRO build. You also need each membership or LMS plugin installed and active for its integration to run.
Why this helps
Consider what happens today when a member gets an email from your site. They receive "Your membership is active" or "You have been enrolled in Advanced Photography", they click through, and they land on a login form. They do not remember the password they set at checkout — often minutes earlier. They request a reset, wait for another email, choose a new password, log in, and finally reach the page you sent them to. Most people give up somewhere in the middle.
With a magic link in that email, the same click logs them straight in and drops them where they were headed:
- The moment right after payment matters most. Someone who has just paid is as motivated as they will ever be; spending that goodwill on a password reset is expensive.
- Course completion depends on getting started. A student who cannot reach lesson one does not come back for lesson two.
- Every login problem is a support ticket. Password resets are the single most common request most membership sites handle, and a magic link removes the cause.
Supported plugins
Each integration detects its host plugin and stays completely inactive if that plugin is not installed. It hooks into that plugin's email system to replace the {magic_link} merge tag with a working, personalized login link for the recipient.
| Plugin | Where a magic link can appear |
|---|---|
| MemberPress | Any MemberPress email (via the {magic_link} email variable); it also records an audit-log event when a transaction completes. |
| Paid Memberships Pro | Any PMPro email; it also records an audit-log event after checkout. |
| LearnDash | Course, lesson, and enrolment notification emails. |
| LifterLMS | Notification emails, plus a registered {magic_link} merge code for your own LifterLMS email templates. |
| Tutor LMS | Notification and email-notification messages. |
How to turn it on
There is no on/off setting for these integrations — each one runs as soon as both plugins are active. Getting a link into an email is a two-step job:
- Make sure Magic Link PRO is active.
- Make sure the membership or LMS plugin is active.
- Edit the plugin's email template (in that plugin's own settings) and add the
{magic_link}merge tag where you want the login link to appear. - Save the template and send yourself a test.
If a template contains no {magic_link} tag, the email is left exactly as it was — the integration never alters an email you did not mark. In MemberPress and LifterLMS you can also insert Magic Link from that plugin's own email-variable/merge-code list.
How to check it is working
The most reliable test is a real one:
- Create a test account with an email address you can read.
- Put it through the flow you care about — a test purchase, a manual enrolment, or a membership assignment.
- Open the email that arrives.
- Click the link in a private or incognito window. This matters: in your normal browser you are already logged in, so any link appears to work.
- You should land on the members' or course area already signed in.
If links are not appearing
- Confirm the
{magic_link}tag is in the template. No tag means no link — this is the most common cause. - Check both plugins are active. The integration is inert unless its partner plugin is running.
- Check the email is actually sent by that plugin. Some sites replace membership emails with a marketing tool or automation. If the message comes from somewhere else, the integration never sees it — use Insert a Magic Link into your emails instead.
- Test in a private window. By far the most common false alarm.
- Check your link lifespan. If links expire in five minutes and your customer reads email an hour later, the link is valid but expired by the time they click. See Magic Link expiry settings.
Conclusion
The membership and LMS integrations turn every transactional email into a one-click way back into the members' area or course — you enable nothing, you just add {magic_link} to the templates that matter. For store, subscription, and CRM emails, see Store, CRM, and community integrations; to add a link to any other WordPress email, see Insert a Magic Link into your emails.
FAQs
Are the membership and LMS integrations free or PRO?
They are PRO. The code for the MemberPress, Paid Memberships Pro, LearnDash, LifterLMS, and Tutor LMS integrations ships only in the Magic Link PRO build. You also need the relevant membership or LMS plugin installed and active — each integration detects its host plugin and stays inactive when it is absent.
Do I have to configure anything to enable these integrations?
There is no on/off toggle — each integration runs automatically once both Magic Link PRO and the host plugin are active. To make a login link appear in an email, though, you must add the {magic_link} merge tag to that plugin's email template. Templates without the tag are left unchanged.
How do I add the login link to a course or membership email?
Edit the email template inside the membership or LMS plugin's own settings and insert the {magic_link} merge tag where the login link should go. Magic Link replaces it with a personalized login URL for the recipient. In MemberPress and LifterLMS you can also pick Magic Link from that plugin's built-in email-variable or merge-code list.
The magic link is not showing in my emails — why?
Most often the {magic_link} tag is missing from the template, so there is nothing to replace. Also confirm both plugins are active, that the email is genuinely sent by that plugin (not a marketing tool), and that you are testing in a private window — in your normal browser you are already logged in, so any link looks like it works.
Why test the login link in a private or incognito window?
In your everyday browser you already have an active session, so clicking a magic link appears to succeed no matter what. A private or incognito window has no session, so it proves the link genuinely signs a fresh visitor in. It is the single most reliable way to confirm the integration is working end to end.