Title: Simple email register form
Last modified: August 20, 2016

---

# Simple email register form

 *  [tee05](https://wordpress.org/support/users/tee05/)
 * (@tee05)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/simple-email-register-form/)
 * Does anyone know if there is a way to add a simple register form with only the
   email address feild and this then creates a new user? (In other words no username
   or password in the register form.)

Viewing 1 replies (of 1 total)

 *  [Daniel King](https://wordpress.org/support/users/lordarkad/)
 * (@lordarkad)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/simple-email-register-form/#post-2299064)
 * I tried this just now for an event related site. It’s 100% hacky, but on wp_login.
   php, about line 298, I added a $user_login = $user_email:
 *     ```
       function register_new_user( $user_login, $user_email ) {
       	$errors = new WP_Error();
       	$user_login = $user_email;
   
       	$sanitized_user_login = sanitize_user( $user_login );
       ```
   
 * This makes the login field data irrelevant, and replaces with the email address.
   Then, it sanitazes and continue with the registration process.
    Then, you should
   remove or hide the user_login text field I’m not sure if it’s the best way to
   do it, but it works for now.
 * It’s important to note that I made this form not available for the general public,
   it just for event organizers.

Viewing 1 replies (of 1 total)

The topic ‘Simple email register form’ is closed to new replies.

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [register](https://wordpress.org/support/topic-tag/register/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Daniel King](https://wordpress.org/support/users/lordarkad/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/simple-email-register-form/#post-2299064)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
