I would like to give to all users who register on my website the value 'Register' of a
usermeta field which is called user_type.
I'm thinking on adding the next code:
update_user_meta( get_current_user_id() or
$user_id, 'user_type', 'Registrado');
I'm confused because I don't know on which Buddypress / WordPress function or page I need to paste the code, the idea is setting this value when the user completes the register form.