5 years ago (2015-03-19)  Algorithm language |   First to comment  139 
post score 0 times, average 0.0

For blogs, the average number of users will not be too large. Sometimes registered users may not remember their registered user names, but they often know the registered mailbox.Its implementation in the mainstream login system generally supports both user name and mailbox login. This reduces the probability that the user forgets the user name. WordPress does not support mailbox login.In order to facilitate everyone's registered visit, Wang Baiyuan's blog supports QQ login, but in fact QQ login user name is a long, seemingly irregular string, the user can not remember.In order to solve this problem, I'll introduce you to the way wordpress allows you to log in using your mailbox and password.Add the following code to the theme template function file "functions.php" file.

WordPress allows login using email and password

There are WP Email Login plugins for using email to login wordpress, but personally feel that using pure code is completely alternative.Using too many plugins has a negative impact on the speed of your website.

appendix

Learn more about the pure code implementation of plug-in functionality, you can refer to wordpress no plug-in to achieve six classic features

 

This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!

Reprinted Note Source: Baiyuan's Blog>>https://wangbaiyuan.cn/en/wordpress-allows-you-to-use-email-and-password-to-log-in-2.html

Post comment

Style

No Comment

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW