该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WPML Translate Shortcode

描述

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.

安装

  1. Upload wpml-translate-shortcode/ to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

评价

此插件暂无评价。

贡献者及开发者

“WPML Translate Shortcode” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.1

  • DEPRECATED. Use WPML Shortcodes. It’s way better.

1.0.0

  • First release, it just works.