Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by alexR-10 1 year, 4 months ago.

Author Posts
February 7, 2024 at 7:30 pm #15278791

alexR-10

Hi

This isn't a bug. But I can't find any information how to do what I need to do. If you're able to at least point me in the right direction, it would be hugely appreciated.

I'm trying to list all LearnDash Courses that a User is enrolled in (has purchased through Woocommerce) on the User's account dashboard, regardless of language. Rather than the current behaviour, where EN Courses are listed when viewing the dashboard in EN and FR Courses in FR. I think this dashboard might be the Woocommerce my account, rather than created by LearnDash. I'm not totally sure, as I didn't set up the site, but I'm now responsible for maintaining it.

I've attached screenshots of the current behaviour. The desired behaviour would be all three Courses listed on the Dashboard when viewed in both FR and EN.

I can't find any relevant documentation to follow.

The site is hidden link.

Many thanks

course-list-FR.jpg
course-list-EN.jpg
February 8, 2024 at 2:35 pm #15281786

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps. By default, WPML does not have the optioin to display posts (or in your case, courses) in all languages. It is intended to show English courses on the English page and French courses on the French page. I'm not sure if LearnDash has an option to overwrite this, but it is possible you can accomplish what you are trying with custom code. You can try searching the WPML forum to see if other users have shared a custom code solution, or you can browse our available API hooks: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

If you need further assistance, you can also hire a 3rd party certified WPML developer, please see https://wpml.org/contractors/.

February 8, 2024 at 6:55 pm #15283012

alexR-10

Thank you very much for pointing me in the direction of the API Hooks documentation, that may be what I need to use.