How To Differentiate Registration Type

This topic contains 7 replies, has 2 voices, and was last updated by Avatar Pie Register 3 years, 1 month ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10004537
    Avatar
    Melih Oztalay
    Participant

    Hello,

    One someone registers, how do we allow them to select what type of registration they are. There are only two options for our website…subscriber and contributor.

    Based on the field being used for this purpose in Pie Register, does it automatically setup the WordPress user account accordingly?

    Thanks for your help.

    #10004538
    Avatar
    Pie Register
    Participant

    Hello,

    With PR free version, you can only set a role users will be registered in at Form Editor, so all of the new registrant will be assigned that role automatically.

    Thanks

    #10004539
    Avatar
    Melih Oztalay
    Participant

    Hi Mohsin,

    Are you suggesting here is a Prof version of this plugin? If so, how do we get it? We did not see anything within the plugin’s Help very easily.

    #10004540
    Avatar
    Pie Register
    Participant

    Hi Melih,

    There is a pro version but haven’t out yet still in testing phase.. yes the documentation is still something we need to work on.. however, the best way for the support is searching forums and post your queries here at this moment.

    Best

    #10004541
    Avatar
    Melih Oztalay
    Participant

    Hi Mohsin,

    It sounds like we cannot differentiate when people register if they are one type of person or another.

    Is there a way to setup two registration pages with different forms?

    What about the invitation codes? Anyway that can help separate registrations?

    Thanks for collaborating.

    #10004542
    Avatar
    Pie Register
    Participant

    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

    #10004544
    Avatar
    Melih Oztalay
    Participant

    Hi Mohsin,

    Could you confirm where this code needs to be placed so we can test it out? I’m not sure you clarified the file location and others who might read this thread would want to do know too.

    Thanks.

    #10004545
    Avatar
    Pie Register
    Participant

    Well, the code i sent you is not a functional one, its just give you an approach to implement what you are looking for, the best place to add this code is either in a new plugin or your theme’s function.php

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.

Checkout
0
PURCHASE NOW