Somewhere in my code I need to know what is the current language and display a certain custom field or another one based on this knowledge.
How can I know this information ?
|
Somewhere in my code I need to know what is the current language and display a certain custom field or another one based on this knowledge. How can I know this information ? |
|||||||
|
|
WPML defines constants that you can use go get the current language:
|
|||
|
|