WordPress plugin intelligence profile

Magic Login Mail or QR Code

Enter your email address, and send you an email with a magic link or QR Code to login without a password.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version2.07
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 4.7 · PHP 8.0
Directory statusactive
Last directory update16 Aug 20262mo ago
Active installations100Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 3 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Magic Login Mail or QR Code version 2.07 as active, updated 2mo ago and tested up to WordPress 7.1.

Overview

About this plugin

Enter your email address, and send you an email with a magic link or QR Code to login without a password.

Login

  • Login with email address only.
  • Only registered users can login.
  • Password-less login from the magic link or QR code notified in the email.
  • shortcode: [magic_login]
  • action hook: do_action( 'magic_email_send', $emails | array, true | bool ): To send the magic link simultaneously from the management account.
  • QR code login on the user’s administration screen.

Thanks

  • This plugin is a modified version of Passwordless Login.
  • The main changes are the addition of various filter hooks and the addition of the following action hooks.

Action hook

  • This is for sending bulk e-mails with a magic link for login to multiple accounts from the management screen.
  • When using this action hook, the URL of the page where the shortcode [magic_login] is placed should be specified in the filter hook ‘magic_login_mail_url’.

/** ================================================== * To send the magic link simultaneously from the management account. * * @param array $emails Multiple email addresses. * @param bool true Output notifications to the management screen immediately after sending.

*/ do_action( 'magic_email_send', $emails, true );

Filter hooks

/** ================================================== * Filter for magic link url with mail. * */ add_filter( 'magic_login_mail_url', function(){ return 'url'; }, 10, 1 );

/** ================================================== * Currently logged in user link for Magic Login Mail * * @param string $url URL. * @param int $user_id User ID. * @return $url */ add_filter( 'magic_login_mail_user_redirect', 'redirect_url_login_users', 10, 2 );

/** ================================================== * Login user after redirect for Magic Login Mail * * @param string $url URL. * @param int $user_id User ID. * @return $url */ add_filter( 'magic_login_mail_after_login_redirect', 'redirect_url_login_users', 10, 2 );

function redirect_url_login_users( $url, $user_id ){ /* your code */ return $url; }

/** ================================================== * Filter for message with shortcode form. '; }, 10, 1 );

/** ================================================== * Filter for color with shortcode form.

* */ add_filter( 'magic_login_mail_success_link_msg_back_color', function(){ return '#e7f7d3'; }, 10, 1 ); add_filter( 'magic_login_mail_success_login_msg_back_color', function(){ return '#e7f7d3'; }, 10, 1 ); add_filter( 'magic_login_mail_valid_errors_back_color', function(){ return '#ffebe8'; }, 10, 1 ); add_filter( 'magic_login_mail_email_errors_back_color', function(){ return '#ffebe8'; }, 10, 1 ); add_filter( 'magic_login_mail_invalid_token_error_back_color', function(){ return '#ffebe8'; }, 10, 1 );

/** ================================================== * Filter for input text size. * */ add_filter( 'magic_login_mail_input_size', function(){ return 17; }, 10, 1 );

/** ================================================== * Filter for class name.

* */ add_filter( 'magic_login_mail_notice_class_name', function(){ return 'mynotice'; }, 10, 1 ); add_filter( 'magic_login_mail_form_class_name', function(){ return 'myform'; }, 10, 1 ); add_filter( 'magic_login_mail_label_class_name', function(){ return 'mylabel'; }, 10, 1 ); add_filter( 'magic_login_mail_input_class_name', function(){ return 'myinput'; }, 10, 1 ); add_filter( 'magic_login_mail_submit_class_name', function(){ return 'mysubmit'; }, 10, 1 );

/** ================================================== * Filter for message with mail subject. * */ add_filter( 'magic_login_mail_subject', function(){ return 'subject'; }, 10, 1 );

/** ================================================== * Filter for message with mail. * * @param string $message message. * @param string $url url.

* @param string $exp_date_time expiration date and time. */ add_filter( 'magic_login_mail_message', function( $message, $url, $exp_date_time ) {

= '<br><br>'. ';

return $message; }, 10, 3 );

/** ================================================== * Filter for login expiration. * */ add_filter( 'magic_login_mail_expiration', function(){ return 10; }, 10, 1 );

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • email
  • login
  • passwordless
  • users
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 4.7 · PHP 8.0
Update activity16 Aug 20262mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.