@anilktpss
7 years, 7 months ago
@intelligence My Form is like this So had created function to store the data http://www.awesomescreenshot.com/image/2442411/6fbbebadbece9d33ad85f71498c395ae
I am also doing this But I had used for title activity Meta function.
This function is useful during the process of registration and need to fetch user ID and need pass to this function with group id
you Can also check previous topic on this
how to add new members to groups automatically?
You can use something like this function
function automatic_group_membership( $user_id ) { if( !$user_id ) return false; groups_accept_invite( $user_id, <# group ID #> ); } add_action( 'bp_core_activated_user', 'automatic_group_membership' );