Reply To: Programatically choosing Login Welcome and Membership Options pages.

Forums General Programatically choosing Login Welcome and Membership Options pages. Reply To: Programatically choosing Login Welcome and Membership Options pages.

#512

Just having !empty($_REQUEST['_s2member_vars']) in the conditional will spot if the user was sent to the Membership Options Page.

You don’t need to check for a ccap as I did in that particular case, you can just redirect the visitor to the Membership Options Page for that particular language.

For example (untested):

if (!empty($_REQUEST['_s2member_vars'])) {
   header('Location: http://mysite.org/'.strtolower(ICL_LANGUAGE_NAME_EN).'-member-options-page/?lang='.ICL_LANGUAGE_CODE);
   exit;
}

I hope that helps. 🙂