Help to add second role
-
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 StudentWith 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
- The topic ‘Help to add second role’ is closed to new replies.