Reply To: How To Differentiate Registration Type

Home Forums Pie-Register 2.0 Support How To Differentiate Registration Type Reply To: How To Differentiate Registration Type

#4542

PIE REGISTER
Keymaster

There is no way to have multiple forms in free version however, you can extend the functionality to assign different roles based on user selected option using PR registration hook like this:

add_action('pie_register_after_register_validate','assign_different_userRoles_on_pr_registration',10,1);
function assign_different_userRoles_on_pr_registration($userData){
    //You have user object and POST to retreive the data here.
    //if(isset($_POST['FIELD_TYPE_XX']) == 'SOMEVALUE'){
        //Assign a different role here
    //}
}

Hope it will be a starting point..

good luck

  • This reply was modified 2 years, 4 months ago by  PIE REGISTER.