How can i allow users to login to my wordpress site using both email id and username? Currently it is allowing only username.
Leave a Reply
You must be logged in to post a comment.
How can i allow users to login to my wordpress site using both email id and username? Currently it is allowing only username.
You must be logged in to post a comment.
As of WordPress 4.5, logging in with the email address instead of username has been added to core functionality. It was introduced in ticket 9568.
If you are running a version of WordPress older than 4.5, the following small small plugin will work. If you don’t (or can’t) use a plugin, this should – in theory – as well work from within your
functions.php
file. Just leave the plugin comment header out.Hope this helps.