Support » Plugin: WP-Members Membership Plugin » Hide username on registration form

  • InDzine Steve


    My client wants users to login with there email address, so don’t want users to have to chose a username when they register. Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler


    The plugin does allow login with the user’s username OR email by default.

    However, I don’t generally recommend removing the username field from registration. This is a field that MUST be populated (whether by the user or by you) in order for WP to create a user (it’s a mandatory field for WP).

    You could potentially filter the field out of the display with wpmem_register_form_rows, but because the validation is built around having a populated value, you’d have to create a username (I’d recommend parsing the user’s email address and creating it from that). You can use wpmem_pre_validate_form for that (see: that would allow you to create a username and insert it with the form values before the values are validated for submission (Note the field is in the array as “username” and not “user_login”).

    Thread Starter InDzine Steve


    Hi @cbutlerjr, thank you, I will take a look and see what I can do. I am happy to use the email address as the username.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.