PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Restrict membership by email suffix

s2Member Plugin. A Membership plugin for WordPress®.

Restrict membership by email suffix

Postby workforcongress » May 27th, 2011, 11:43 am

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?
User avatar
workforcongress
Registered User
Registered User
 
Posts: 5
Joined: May 17, 2011

Re: Restrict membership by email suffix

Postby Cristián Lávaque » May 28th, 2011, 1:04 am

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'); 
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron