update role when updating member type
-
I searched BP code and I found function update_member_type() in file bp-xprofile-member-type-field/bp-xprofile-member-type-field-loader.php
This function updates the member type of a user when member type field is updated. I can hack it and in order to set a specific role when updating the member type.
Because I don’t want to make code hackings, what else could I do? How can I hook this function (if I am using the right terminology)?
Thank you!
- You must be logged in to reply to this topic.