Email as Username for WP-Members
New Tribes Mission (Stephen Narwold) By New Tribes Mission (Stephen Narwold)

December 04, 2014

Email as Username for WP-Members Plugin

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).

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.

Installation

  1. Make sure the WP-Members plugin is installed and activated
  2. Turn the WordPress native Registration off (users can still register through WP-Members)
  3. Upload the /email-as-username-wpmem folder to the /wp-content/plugins/ directory
  4. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Will this work without WP Members activated?

I highly doubt it. This plugin does not attempt to control the native WordPress registration

Changelog

1.3

  • Add internationalization (Italian Language Files)
  • Add options page
  • General WP coding standard compliance
  • Thanks to realloc for all these additions and changes

1.2.2

  • Fix argument missing error

1.2.1

  • Fix password reset for when username != email

1.2

  • Add ability to login with email even if username is different (Thanks to Beau Lebens)

1.0

  • Initial Release

Details

  • Version: 1.3
  • Active installations: 1,000
  • WordPress Version: 3.5
  • Tested up to: 4.0.38

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars