Support » Plugin: User Registration & User Profile - Profile Builder » Using Email as the Username (in user_login field)

  • Resolved Julian Magnone



    I’d like to know if it is possible to remove the Username field from the Manage Field -> Field Properties section. Currently, the registration form is asking for a username and email, but since I am allowing to login either with Email or Login, I don’t require to ask for a username field.

    Moreover, asking for a Username is generating some confusion, if the user enters an email address under Username then when saving into wordpress is causing to remove the “@” (not sure if this is sanitized by the plugin or WordPress) but some users are complaining login issues.

    I’ll appreciate your support. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Georgian Cocora


    Hello Julian,

    If you go to Profile Builder -> General Settings and set the Allow Users to Login with option to Email Only then the username field should not be displayed anymore in the form.

    Let me know !


    Ok, good. It worked now (the username is removed from the sign up form). Now, I need to see what to do with all existing users who have a username configured or normalize it with their email addresses instead.

    An additional question I have is: I noticed that the username is still being shown in the subject of the activation email sent after signing up with Profile Builder. If I sign up with an email address like “” (which is a valid email address) then I get this:

    Subject: “[Site Name] Activate emailaddresslabelgmail-com”

    and emailaddresslabelgmail-com is being saved as username.

    Is this something related to WP or Profile Builder?

    Thanks for your support.

    Plugin Author Georgian Cocora


    Hello Julian,

    WordPress requires an username (I might be wrong since newer versions) to register the user, so when this option is activated inside our plugin, we parse the email address and use it as an username when creating the user.

    That seems like a bug in our product or something that we didn’t take in consideration. I’ve reported it to the team, but until it’s fixed, you can use the following piece of code and the subject will contain the Email address not the username:

    add_filter('wppb_signup_user_notification_email_subject', 'wppbc_ec_subject', 10, 8);
    function wppbc_ec_subject($subject, $user_email, $user, $activation_key, $registration_page_url, $meta, $from_name, $context) {
    	$subject = sprintf( __( '[%1$s] Activate %2$s', 'profile-builder'), $from_name, $user_email );
    	return $subject;

    Let me know if it works !


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Email as the Username (in user_login field)’ is closed to new replies.