fbpx

Description

[wcj_wpml] shortcode translates any text to language set by WPML.
* WPML plugin must be installed.

Args


lang
(optional) Language code (as in WPML) to display current shortcode content. Can be comma separated list.
Default: None

not_lang
(optional) Language code (as in WPML) not to display current shortcode content. Can be comma separated list.
Default: None

Examples

[wcj_wpml lang="DE"]Guten Tag![/wcj_wpml]<br />
[wcj_wpml lang="EN"]Good day![/wcj_wpml]<br />
[wcj_wpml not_lang="DE,EN"]Hi![/wcj_wpml]
If the example above won’t work, please try replacing `lang` attribute’s values with lowercase, i.e. `EN` to `en`, and `DE` to `de`.
Accessible through:
  • [wcj_wpml]
Tested on WooCommerce 8.5.1 and WordPress 6.4.2