WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WPML Shortcodes

Easily add strings to translate to your (child) theme or everywhere in your WordPress website.

Adds the wpml__ and wpml_e functions to your theme and the wpml__ shortcode to your WordPress website. Make your WordPress full WPML ready

<?php wpml__( $text, $domain ); ?>
<?php wpml_e( $text, $domain ); ?>

Similarly to the behaviour of the __, _e functions, you must provide a string to make translateable and a domain. That’s it; just provide translations from the WPML > String Translations admin panel.

Check how to use the shotcode below.

Usage (via code)

<h1><?php echo wpml__( ‘Title’, ‘wpmlshortcodes’ ); ?></h1>
<h2><?php wpml_e( ‘Subtitle’, ‘wpmlshortcodes’ ); ?></h2>

Usage (via shortcode)

<h1>[wpml__ domain=wpmlshortcodes]Title[/wpml__]</h1>
<h2>[wpml__ domain=wpmlshortcodes]Subtitle[/wpml__]</h2>

Contribute

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

Author: Mirco Babini, Web Developer and Mobile App Developer; WordPress Consultant.

Requires: 2.8 or higher
Compatible up to: 4.0.1
Last Updated: 2014-9-22
Active Installs: 100+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1