• Resolved droonss

    (@droonss)


    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?

Viewing 1 replies (of 1 total)
  • Plugin Author Irshad Ahmad

    (@irshadahmad21)

    Hello

    The plugin sets the role only when creating a new user. It doesn’t update it for existing users.

    If you wish to update user role when an existing user logs in, then you will need some custom code.

    You can see this example.

Viewing 1 replies (of 1 total)
  • The topic ‘user role’ is closed to new replies.