Hi @dkance
UM, and Woo is using the wp_users and wp_usermeta tables to store user details. So either Register forms should allow users to log in after the registrations. Are you having issues when you register users via UM Register form?
Regards,
Thread Starter
dkance
(@dkance)
Hi @champsupertramp,
Thank you for replying.
Currently what I do not see as a registered UM user is the access to Woo account settings and history.
I was assuming it was going to be automatic but it seems not.
Regards.
Hi @dkance
Try adding a customer role to the users. Here’s a code snippet that adds a customer role to the user on registration:
add_action("um_registration_set_extra_data", function( $user_id ){
$u = new WP_User( $user_id );
// Add role
$u->add_role( 'customer' );
});
For existing users, you can use the User Role Editor that adds a role selection in the WP Admin > Users.
Regards,
Thread Starter
dkance
(@dkance)
Hi @champsupertramp,
Thank you for the solution.
I will try it out.
Regards.
Thanks for letting us know.
Regards,