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.

#506
Scott P
Participant

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

Hello Cristián,
Many thanks for your code sample. I see you base it on CCAP which is cool and this has given me ideas for another s2m project.

For the current site I have a lot of custom capabilities for the different courses but I’m actually using WPML to convert the English only site to multi-lingual and need to direct members in one language, say French or Spanish, to the login welcome page in their language rather than the English page. Likewise for the members option page there will be only one page for each language. In both cases I would like to direct language-specific users to their respective pages using conditionals such as:

if ( ICL_LANGUAGE_CODE=='en' ) {  
	// direct to English Login Welcome page url
}
if ( ICL_LANGUAGE_CODE=='fr' ) { 
	// direct to French Login Welcome page url
}

Cheers,
Scott