• Resolved marcoqwerty

    (@marcoqwerty)


    Hello!

    I bought the Pro version of this plugin, and atm works pretty good, no bad issues or somethng to say bad to support care. All feature integrate perfecly also if my theme layout its still not considered “compatible”.

    Just one question for developers.

    My theme use Owner and Guest users i would like to add Tutor instructor role and Studend IF someone register as Owner or Guest

    Basically:

    – If you register as Owner, add the rule Tutor instructor
    – Else (or if) reister as Guest, add the rule Student

    With this Function i add a second user role (tutor_instructor) to primary one, but i missing the filter described:

    
    add_action( 'user_register', 'add_secondary_role', 10, 1 );
     
    function add_secondary_role( $user_id ) {
     
        $user = get_user_by('id', $user_id);
        $user->add_role('tutor_instructor');
     
    }
    

    Someone can help me to add the proper filter to archive this?

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I am sorry to inform you that customization is not covered in our support service. You may hire a developer to assist you with the additional role application automatically.

    You can also have a look at form plugins that have user registration features and assigning multiple roles at once.

    Thread Starter marcoqwerty

    (@marcoqwerty)

    I solved by using a snippets, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help to add second role’ is closed to new replies.