WPML Translate Shortcode

WPML Translate Shortcode Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 9,179 downloads
WPML Translate Shortcode Icon

Try plugin: WPML Translate Shortcode

We'll create fresh WordPress site with WPML Translate Shortcode installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About 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.

6


0


0


0


0

updated: 8 years ago
since: 10 years ago
author: Mirco Babini

Description

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.