Add user role with a form selection on entry creation
-
Hi there, excellent plugin!
Is it possible to a new user, when he’s registering in the UM forms, to choose what user role he will be with a form selection like radio button? Because i need the user to registers at least 5 user roles at the same registration form.
Is there a hook that can do this job?
I found this hook for Formidable Forms:
add_filter(‘frmreg_new_role’, ‘frmreg_new_role’, 10, 2);
function frmreg_new_role($role, $atts){
extract($atts);
if($form->id == 8){
if($_POST[‘item_meta’][280] == ‘Job Applicant’)
$role = ‘applicant’;
}
return $role;
}Do you have a hook like this that can do the same thing? Add multiple roles to a user entry creation?
Thanks
- The topic ‘Add user role with a form selection on entry creation’ is closed to new replies.