• Hi,
    I have been trying to create a registration form where the user chooses his own username, but the username has to correspond to his company email.
    Eg. Username is person1, then the email is set to [email protected]

    The user should not be able to edit his email, but will be able to edit his username so that it corresponds to his company email. This is a way of preventing users using a personal email.

    I have tried to set the default email-value to {$user_login}@thiscompany.com, trying to refer to the username with meta key user_login. Is there a way to do this?

Viewing 1 replies (of 1 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @stoh

    There is no provision of changing username in WordPress by default and also UM does not have a feature to change the username. But if you still want to set user email as {username}@company.com, I suggest you do that with a hook and some custom codes.

    You can use this hook:
    do_action( 'um_user_register', $user_id, $args );

    you can update the user’s email once the account is created.

Viewing 1 replies (of 1 total)
  • The topic ‘Refer to meta key in registration form’ is closed to new replies.