Assign user roles based on BuddyPress profile field data on user registration
Are you looking for how to assign role to user based on profile field data for BuddyPress registration? It's simple. We can use the "bp_core_activated_user" action which is called when user account gets activated. Since we plan to assign role based on profile field data, we will need to find the data. To fetch BuddyPress …