Email as Username for WP-Members

Created by: New Tribes Mission (Stephen Narwold)

Rating:
Downloaded: 8k times

Requires WP-Members to be in use. Uses members’ emails as their usernames. Removes the need to create a username (if wp-members is in use). Changes or removes appropriate items from forms, and adds the email address as the username. If WP-Members is no longer in use, there are plenty of plugins that offer this capability for WP’s native registration and login functions

How it works:
This plugin doesn’t do much of anything with the login form. It deals with the WP-Members registration form, removing username as a field to fill out and filling it automatically with the email entered. For backward compatibility (for users that were created before this plugin was installed), the plugin will try looking up the username by email if they log in with that instead of their username.

The plugin also does some funky things with subscribers:

  1. It doesn’t allow them access to the dashboard. This is to keep them from changing their email address (and un-syncing their username/email)
  2. It turns off the admin bar for them. Let’s face it, they don’t need that anyways.

Props to Beau Lebens for his Email Login plugin. I stole his function (from version 4.6.3) to help with backward compatibility.

Screenshots

    Categories

    Get New Themes & Resources