Page 1 of 1

Restrict membership by email suffix

PostPosted: May 27th, 2011, 11:43 am
by workforcongress
I would like to create a membership level that is restricted by email suffix. Example: only users with @gwmail.gwu.edu email addresses can sign up for Membership Level 3. How do I do this?

Re: Restrict membership by email suffix

PostPosted: May 28th, 2011, 1:04 am
by Cristián Lávaque
You could have them sign up at a lower level before (e.g. Level 0, free account) and then use a conditional to show the button for the Level 3 membership only to those who have the right kind of email address.

You can get the user's email with the shortcode

Code: Select all
[s2Get user_field="email" /]


or PHP

Code: Select all
$user_email get_user_field('user_email');