Assign User Role Upon Registration

Hello,

I have two parts of registration that I would like to keep separate, and not integrate the user roles with affiliates. I want a separate user role and access to be separate from customers. I installed members plugin to create new role, how do I assign that role to any affiliate that registers?


Comments

One response to “Assign User Role Upon Registration”

  1. antonio Avatar

    Hi,
    you can use this function in your functions.php file (change “Premium” to your group name).
    cheers

Share