So what the problem ? You can go to Settings of your UM plugin and choose what fields need to be in registration form.
WordPress need to be Email or Username….
Thread Starter
Mikel
(@ogmic)
I have both fields available in registration, however I want just username to be used when logging in.
How do I do that please?
Thread Starter
Mikel
(@ogmic)
add_filter('um_login_fields', 'um_login_only_username', 10, 1);function um_login_only_username($fields) { // Remove the email field unset($fields['user_email']); // Return the filtered fields return $fields;}
I tried writing a snippet, but it’s not working
Hello @ogmic
You could go to the login form and add the “Username” or “Username or E-mail” filed.
Regards.
Hi @ogmic
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards