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 4.5.2 and WordPress 5.5.1
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.