Hi Tim. Thanks for the great question.In your WP Dashboard, under: s2Member -> General Options -> Login Welcome Page
you will find a link that says "replacement codes", that is the only documentation on this feature.
Here is an example that should help you.1. Create Pages inside WordPress for each Level, giving each Page a slug that contains a Level number.
- Code: Select all
http://mysite.com/login-welcome-page-level-0
http://mysite.com/login-welcome-page-level-1
http://mysite.com/login-welcome-page-level-2
http://mysite.com/login-welcome-page-level-3
http://mysite.com/login-welcome-page-level-4
2. Set your Login Welcome Page option to a Special Redirection URL:
- Code: Select all
http://mysite.com/login-welcome-page-level-%%current_user_level%%
Understanding Replacement Codes:%%current_user_login%% = The current User's login ( their Username, lowercase ).
%%current_user_ID%% = The current User's ID.
%%current_user_level%% = The current User's s2Member Level.
For example, if you're using BuddyPress, and you want to redirect Members to their BuddyPress Profile page after logging in, you would setup a Special Redirection URL, like this:
- Code: Select all
http://www.s2member.com/members/%%current_user_login%%/profile/
Or ... using %%current_user_level%%, you could have a separate Login Welcome Page for each Membership Level that you plan to offer. BuddyPress not required.
Additional Replacement Codes can be added through custom programming. Use:
- Code: Select all
add_filter('s2member_fill_login_redirect_rc_vars', 'my_filter');