OK im really at the point of frustration here (I figured out why the success variable didnt redirect). BUT IN a normal s2 flow this works
sales page -> payment -> registration -> Auto Login -> Upsell -> members area
And it upgrades the account properly from LEVEL 1 to LEVEL 2
add_action(‘ws_plugin__s2member_during_configure_user_registration’, ‘s2_auto_login_after_registration’);
function s2_auto_login_after_registration($vars = array()) {
if (!is_admin() && $vars[‘processed’] === ‘yes’) {
wp_new_user_notification($vars[‘user_id’], $vars[‘pass’]);
wp_set_auth_cookie($vars[‘user_id’], false, is_ssl());
c_ws_plugin__s2member_login_redirects::login_redirect($vars[‘login’]);
}
}
This seems to be the code that tells subsr-modify how to find the account
wp_new_user_notification($vars[‘user_id’], $vars[‘pass’]);
wp_set_auth_cookie($vars[‘user_id’], false, is_ssl());
NOW
I need it to be
sales page -> free registration -> payment -> upsell -> members area.
I’m using the PayPal pro forms, to do the FREE registration, but then when it redirects to the payment
it treats it as a NEW user! Its NOT finding the current logged in user on return and im unsure WHY. Can you
please advise here
Ricky