add to group on registration - redux
Posted: April 22nd, 2011, 4:55 pm
I have seen a few posts on this, and I'm just wondering if anyone has a lead on how to implement this. I don't even know where to start.
I'm assuming that the information coming back from PayPal will include membership level and custom capabilities information. How do I get at that information in generate a variable that I can use with I have found to add users to group on registration:
Now I want to add a variable coming from paypal. I just don't know how to find it (assuming the above works).
Any help super appreciated. Thanks
I'm assuming that the information coming back from PayPal will include membership level and custom capabilities information. How do I get at that information in generate a variable that I can use with I have found to add users to group on registration:
- Code: Select all
//Automatically add new users to a group
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' );
Now I want to add a variable coming from paypal. I just don't know how to find it (assuming the above works).
Any help super appreciated. Thanks