Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Remove email address on WP registration? WordPress

<strong>UPDATE: Fixed</strong>
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.


file: /wp-login.php

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>


Answers (6)


Romel Apuya answers:

there's a plugin for that.

[[LINK href=""]][[/LINK]]

Techster comments:

If you read, these are desired features and not included in the plugin (


Arnav Joy answers:

are you using any plugin or default registration form of wp

Techster comments:

default registration form and would like to keep it that way - what do you suggest?


Pali Madra answers:

Here is the plugin that would do the trick for you.

[[LINK href="http://"]][[/LINK]]

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

[[LINK href=""]][[/LINK]]

which allows you to customize the fields of the registration page.

Pali Madra

Techster comments:

This simply disables the email being sent to new users (and not the email field on the form)


Francisco Javier Carazo Gil answers:

Hi Techster,

If you don't want to use plugins look at it:

Techster comments:

Good suggestion but we want to use the native WP registration


Gabriel Reguly answers:

Hi Techster,

Try this plugin: WP Email Login

<blockquote>Use your email address instead of a username to log into your WordPress. </blockquote>

[[LINK href=""]][[/LINK]]


Techster comments:

We want to disable email on the registration page


oslemmonseste answers: