With WPML, the translated course becomes another course to the registered users. It creates problem to the user when the customer switches language during the course.
Is it possible to make the translated course as the same course (with that in original language) to the registered users?
Well this is not exactly the wpml integration with wplms works .User needs to be enrolled in each version of the course individually .
Normally user do not want to be enrolled in course for all languages .
But if you want to do this we can share a piece of custom code but that would work only for new students who will purcahse the courses .
For old students you got to add then from course admin .
This reply has been marked as private.
Hi,
We try to develop the code for your requirement.
But we are unable to find the post id of course of different language.
So if you can can you please contact to wpml for this issue and ask for post id of courses in different language.
This reply has been marked as private.
well that's not what we asked .
We need a code snippet of function to retrieve related post ids of all languages for a particular post id here coz we need to enroll the user in course of all version of languages .
So we need to the course id of all languages from current course id in which user is enrolling .For this you need to contact wpml support .
This reply has been marked as private.
This reply has been marked as private.
Okay that I know ,the above snippet will help only in case your have just two languages in your site .
I wanted the snippet to fetch all related translation ids of a post .
If you site has on;y two courses then we can develop a script to assign course of another language using above code.
This reply has been marked as private.
Well then I will be sharing a code with you for this .
Please provide some time for this .
This reply has been marked as private.
Well I tried to find to fetch the all translation ids from s post id to enroll the user in them once user is added in any of them .
But I could not find any suitable method on wpml forums or else .
Could you please again contact the wpml support on how to fetch all translation ids of a specific post id
This reply has been marked as private.
Well we can provide code on the basis of the reply received by WPML. So you have to wait for their reply.