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