• Features
  • Pricing
  • Help
  • My Account
  • Download
WP Ghost
  • Features
  • Pricing
  • Help
  • My Account
  • Download

Magic Link Login – Passwordless WordPress Login

/Features / Temporary Login / Magic Link Login – Passwordless WordPress Login
Magic Link Login
Table of Contents
  • What Is Magic Link Login?
  • Why Use Magic Link Login
  • How to Enable Magic Link Login
    • Activate and Configure
    • How the Login Flow Works
    • Send Magic Links from the Users List
    • Enable WooCommerce Magic Link
  • Customization
  • Troubleshooting
    • “The server was unable to send the email”
    • Magic link email goes to spam
  • Frequently Asked Questions
    • Can users still log in with a password?
    • How secure is a magic link?
    • Does this work with WooCommerce?
    • What’s the difference between Magic Link Login and Temporary Logins?
    • Does WP Ghost modify WordPress core files?
  • Related Tutorials

Let users log in to WordPress by clicking a link sent to their email – no password needed. Magic Link Login adds a passwordless authentication option to your WordPress and WooCommerce login pages. Users enter their email address, receive a unique one-time link, click it, and they’re logged in. The link expires after a configurable time period and is destroyed after use. No passwords to remember, no passwords to steal, no password reset requests to manage.

What Is Magic Link Login?

What is WP Ghost Magic Link Login and how passwordless email authentication works

Magic Link Login is a passwordless authentication method. Instead of entering a username and password, users provide their registered email address. WP Ghost generates a unique, time-limited URL and sends it to that email. Clicking the link authenticates the user and grants dashboard access. The link is single-use – once clicked or expired, it can’t be used again.

Users can still log in with their traditional password if they prefer. Magic Link Login adds a button to the login form as an alternative authentication option – it doesn’t replace the password form.

Why Use Magic Link Login

Passwords are the weakest link in most authentication systems. Here’s why Magic Link Login strengthens your hack prevention strategy:

It eliminates password-based attacks. Brute force attacks, credential stuffing, and password reuse – the most common login attack vectors – all require a password to target. Magic Link Login removes the password from the equation entirely. There’s nothing to guess, nothing to stuff, nothing to reuse. LLAR’s 2025 report found that brute force attacks surged 130% in 2024 – Magic Link Login makes those attacks irrelevant for users who opt in.

No passwords to manage or forget. Users don’t need to remember complex passwords, comply with strength requirements, or go through reset flows. This reduces support requests and improves the login experience – especially for WooCommerce customers who may only log in occasionally.

Each link is unique, single-use, and time-limited. A magic link can’t be intercepted and reused – it’s destroyed after the first click and expires after the configured time (default: 1 hour). Even if an attacker somehow obtains the link after use, it’s already invalid.

It works alongside other security layers. Magic Link Login complements brute force protection and Two-Factor Authentication (2FA). Users who prefer passwords can still use them with full brute force and 2FA protection.

How to Enable Magic Link Login

Activate and Configure

  1. Activate the feature from WP Ghost > Overview > Features.
  2. Go to WP Ghost > Change Paths > Login Security.
  3. Scroll to the Magic Login section.
  4. Set the Magic Login button text (what users see on the login form).
  5. Choose the Link Expiration period (how long the link remains valid).
  6. Optional: enable WooCommerce support to add magic link to WooCommerce login.
  7. Click Save.
WP Ghost Magic Login settings showing button text, link expiration, and WooCommerce toggle

Email delivery required: Magic Link Login depends on your site’s ability to send emails. You need a working SMTP configuration. Use an SMTP plugin (like WP Mail SMTP, FluentSMTP, or Post SMTP) to ensure emails are delivered reliably. Without SMTP, magic link emails may not reach users.

How the Login Flow Works

Once enabled, here’s what users see and do:

1. User clicks “Login using a magic link” on the WordPress login page.

WordPress login page with Magic Link Login button added by WP Ghost

2. User enters their registered email address.

WP Ghost Magic Link email address input form

3. WP Ghost sends a unique, time-limited link to their email.

WP Ghost confirmation message after magic link email is sent

4. User clicks the link in their email and is logged in automatically. The link is destroyed after use.

Magic Link email received by user with one-click login URL

Send Magic Links from the Users List

Administrators can send magic login links to any user directly from Users > All Users. Click “Send magic login link” in the user’s row actions to send a one-time login link to their email. The link is valid for 1 hour.

WordPress Users list showing Send magic login link action added by WP Ghost

Enable WooCommerce Magic Link

Magic Link Login integrates with the WooCommerce login page. Activate the WooCommerce Magic Link from WP Ghost > Overview > Features, and the magic link button appears on the WooCommerce login form.

WP Ghost WooCommerce Magic Link feature toggle in Overview Features
WooCommerce login page with Magic Link button added by WP Ghost

Customization

Customize the magic link email subject and message using WordPress filters in your theme’s functions.php:

add_filter('hmwp_unique_login_subject', function($subject){
  return "Your Magic Login URL";
}, 1);
add_filter('hmwp_unique_login_message', function($message, $url){
  return sprintf( "Click on this magic link %s to log in to your account.", PHP_EOL . PHP_EOL . $url . PHP_EOL . PHP_EOL) ;
}, 2);

Translation tip: If you use WPML or Polylang, the Magic Login button text and email messages can be translated from WPML > String Translation or Polylang > Languages > String Translations. Changes apply automatically based on the active language.

Troubleshooting

“The server was unable to send the email”

This error appears when your site can’t send emails. WordPress relies on the server’s mail function by default, which fails on many hosting environments. Install and configure an SMTP plugin (WP Mail SMTP, FluentSMTP, or Post SMTP) to route emails through a reliable mail service. Test that your site can send emails before relying on Magic Link Login.

WP Ghost Magic Link Login error message when server cannot send email

Magic link email goes to spam

If users report that magic link emails arrive in spam, the issue is email deliverability. An SMTP plugin with proper SPF, DKIM, and DMARC records on your domain will resolve this. Services like SendGrid, Mailgun, or Amazon SES provide reliable delivery with proper authentication.

If you’ve lost access or something broke, check the emergency disable guide, use the rollback settings, or add a constant in wp-config.php to disable WP Ghost temporarily.

Frequently Asked Questions

Can users still log in with a password?

Yes. Magic Link Login adds an alternative login method – it doesn’t remove the password form. Users can choose either method. The standard password form remains visible alongside the magic link button.

How secure is a magic link?

Magic links are single-use tokens with a configurable expiration (default: 1 hour). They’re destroyed after the first click and expire if unused. Security depends on the user’s email account – anyone with access to that email can use the link. This is the same trust model as password reset emails. For highest security, combine Magic Link Login with 2FA.

Does this work with WooCommerce?

Yes. Enable the WooCommerce Magic Link toggle in Features to add the magic link button to the WooCommerce login page. WooCommerce customers can log in without passwords – reducing support requests and cart abandonment from forgotten passwords. WP Ghost is fully compatible with WooCommerce.

What’s the difference between Magic Link Login and Temporary Logins?

Temporary Logins are admin-generated URLs for specific people (developers, clients) with custom roles and expiration. Magic Link Login is a self-service feature – any registered user can request their own login link from the login page. Temporary Logins are for controlled, admin-initiated access; Magic Link Login is for everyday user authentication.

Does WP Ghost modify WordPress core files?

No. Magic Link Login adds a button to the login form through WordPress hooks and handles authentication through WP Ghost’s processing. No core files are modified. Disabling the feature removes the button and link generation instantly.

Related Tutorials

Build your complete login security system:

  • Temporary Logins – Create admin-generated passwordless URLs with custom roles and expiration.
  • Two-Factor Authentication – Add a second verification step to the login process.
  • Brute Force Protection – Block login attacks with attempt limits and reCAPTCHA.
  • Change and Hide the Login Path – Move your login page to a custom URL.
  • Login Page Design – Customize the appearance of your login page.
Tagged: magic link loginmagic loginpasswordless loginemail link login

Related Articles

  • How to Create Temporary Logins in WordPress

WP Ghost 9.0

WP Ghost 9.0 is the most significant release since the plugin was renamed from Hide My WP Ghost. This update introduces a redesigned security dashboard with a real-time Security Optimization Score, a customizable login page designer, Copyright protection from AI Crawlers, interactive threat geography mapping, and more.

Wp Ghost 9

WP Ghost - Best Practice

Learn how to set up WP Ghost in Ghost Mode and activate all the security features you need for a stronger and safer website.

Most Popular

  • How to Change the admin-ajax.php Path in WordPress
  • WP Ghost Compatible Plugins and Themes List
  • What is WP Ghost?
  • Lesson 3 – Hide Your Site from WordPress Theme Detectors and Bots
  • How to Change and Hide wp-admin Path in WordPress
  • WP Ghost Settings – Best Practice
  • Install WP Ghost Free Plugin for WordPress
  • Setup WP Ghost on Nginx Server Guide
  • Lesson 1 – Customize Paths and Hide Your WordPress Website
  • Theme Not Loading Correctly and Website Loads Slower
  • WordPress Security Check – 40 Security Tasks
  • How to Configure WP Ghost Firewall Protection
  • WP Ghost Compatible WordPress Themes List
  • WP Ghost – Changelog
  • How To Change WordPress File Permissions for Security
  • Set AllowOverride All on Apache Servers Step by Step
  • WordPress Brute Force Protection with reCAPTCHA
  • Change Paths in WordPress Admin Dashboard
  • How to Change the Plugins Path in WordPress
  • Activate WordPress Debugging | WP Ghost Guide
  • Two-Factor Authentication (2FA) for WordPress
  • How to Change and Hide wp-login Path in WordPress
  • How to Change Paths in Cached Files with WP Ghost
  • How to Change the REST API Path and Disable XML-RPC
  • Disable WP Ghost In Case Of Error
  • How to Configure Redirects in WP Ghost
  • How to Change the Registration Path in WordPress
  • Add Brute Force Protection to Elementor Login Forms
  • Hide wp-admin and wp-login.php from Source Code
  • Hide WordPress from Wappalyzer | WP Ghost Guide

Product

  • What is WP Ghost?
  • Free vs Premium
  • Pricing
  • Changelog
  • Why WP Ghost
  • Knowledge Base

Features

  • Path Security
  • Firewall Security
  • Brute Force Protection
  • Two-Factor Authentication
  • User Events Log
  • Security Threats Log

Resources

  • Getting Started Guide
  • Plugin Compatibility
  • Theme Compatibility
  • Hosting Setup Guides
  • Developer Hooks
  • FAQs

Company

  • Affiliate
  • Media Kit
  • Terms Of Use
  • Privacy Policy
  • GDPR Compliance
  • Contact
  • Facebook
  • YouTube
  • X
© WP Ghost 2016-2026 | Powered by AISQ | Squirrly