This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needs to retrieve the default language code of a string in PHP, regardless of the site's default language, specifically for a user description that has a different default language in the WPML String Translation tab.
Solution:
We recommend using WPML's filters and action hooks for proper multilingual support within themes or plugins. Here are some resources that may help:
- WPML Coding API
- WPML Hooks Reference
- WPML Shortcodes
- How to get current language with WPML
- WPML Tables
- WCML Hooks Reference
- WPML Support
If necessary, the default language of a string can be changed in the String Translation section. For more details, visit How to change the source language of strings.
Please note that custom coding support is beyond the scope of our support forum. If you require additional custom work, consider contacting WPML Contractors at WPML Contractors.
If this solution doesn't look relevant, please open a new support ticket.
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 1 reply, has 2 voices.
Last updated by 1 year, 7 months ago.
Assisted by: Waqas Bin Hasan.