[ad_1]
Hello.
In my case, I want existing users to be able to connect to Telegram. Following one of the tips here, I placed a button on the user’s profile.
When registering telegrams, we can assign a role to the user, and it works. But if the user is already registered with WP, and we log into Telegram from the profile page, the role does not switch.
Is it possible to assign/change a user’s role if the user is already registered on the site using WP registration?