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

Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

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. 🙂