- Pie Register
2019-03-20 22:43:26

Reply To: User Role field

Home Forums Pie-Register 2.0 Support User Role field Reply To: User Role field


Pie Register


You can do it in the following way:

1.) Add a drop-down menu with desired roles manually (Set this field
hidden on Profile).
2.) Add a Hook in your theme’s function.php

function my_custom_user_role_cb($user){
         //Put your snippet here to assign user
         // You have User Object to retrieve back the Role Option User
selected with get_user_meta function

Hope it helps!