Setting User Forum Role By Code
I have a wordpress installation with both bbpress and BuddyPress installed. I’m trying to create a user from code and automatically setting the forum role to participant. I tried using the bp_core_signup_user but it has not effect. This is the part of the code where im creating the user:
// create the user from the bp_core method, to make sure it passes the activation mode first $user_id = bp_core_signup_user( $post->username, $post->password, $post->email,  ); bbp_set_user_role( $user_id, "bbp_participant" );
Attached is the user profile after creation from code:
- You must be logged in to reply to this topic.