Manually fixed and plugin submitted to WP repo!
Hi, I want to remove the need for subscribers to provide a username on registration (instead, set their email address as their username).
Is there any way to do this via hooks / actions / filters with native WP functionality? I wan't to be upgradable (and conflict free with other plugins).
Here's the code that works at the minute, but is on core files.
/* CORE MODIFICATION
reason: Remove email on registration
1. Set username to email address
$sanitized_user_login = sanitize_user( $user_login );
$sanitized_user_login = sanitize_user( $user_email );
2. Hide username field
<label for="user_login"><?php _e('Username') ?><br />
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
Romel Apuya answers:
there's a plugin for that.
If you read, these are desired features and not included in the plugin (http://wordpress.org/extend/plugins/improved-user-experience/)
Pali Madra answers:
Here is the plugin that would do the trick for you.
This is the easiest way to do it.
However, this will ask for the username and that would be have to be provided when the customer wants to login.
For customizing the form the plugin I suggest is
which allows you to customize the fields of the registration page.
This simply disables the email being sent to new users (and not the email field on the form)
Gabriel Reguly answers:
Try this plugin: WP Email Login
<blockquote>Use your email address instead of a username to log into your WordPress. </blockquote>
We want to disable email on the registration page