跳到内容

WPML Translate Shortcode

v1.0.1

Mirco Babini · 2014年2月26日 上架

Adds the wpml_translate shortcode to your shortcode suite. You can also use the wpml_text_if_language( $lang, $content ) in your php code.

正在使用
100+
评分
5.0 / 5
累计下载
1.2 万
最近更新
2016年3月5日
6 条评价需要 WordPress 2.8+已测试到 3.7.41

贡献者

Adds the wpml_translate shortcode to your shortcode suite. You can also use the wpml_text_if_language( $lang, $content ) in your php code.

Usage (via code)

echo wpml_text_if_language( ‘en’, ‘Text’ ); echo wpml_text_if_language( ‘it’, ‘Testo’ );

Usage (via shortcode)

[wpml_translate lang=’en’]Text[/wpml_translate][wpml_translate lang=’it’]Testo[/wpml_translate]

Alias

  • wpml_language is an alias for wpml_translate shortcode
  • code and language are alias for lang attribute

Contribute

If you wanna contribute, pull requests on github.com.

Developed by Mirco Babini, WordPress Consultant, Web Developer and Data Lover.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums