- This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Get member's chosen level
Hi
(Second topic today, separate subject)
I am looking to associate each level of membership with different BuddyPress member types.
I read the documentation, but am I correct in assuming that you can only find the membership level via the user’s id once the user is registered?
If so, how can I find the level they have chosen as they’re registering so I can insert something into the database depending on which they choose?
The code would have something along these lines:
$student_levels = array( 2, 3, 4, 5, 11, 12, 13, 14, 15 );
$member_level_chosen = // whichever level chosen on registration
if ( in_array( $member_level_chosen, $student_levels ) {
// make intern a student (insert into SQL stuff)
}
I am trying to find $member_level.
Any help on this really appreciated!
Filipe
Hi Filipe, please check the following PHP tweaks. Let me know if they help you.
Regards