Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| webdev:wordpress:translations:wpml [02/10/2017 12:07] – dolo | webdev:wordpress:translations:wpml [02/11/2017 18:19] (Version actuelle) – dolo | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== Translations with WPML ====== | ||
| + | [[https:// | ||
| + | **Example : force a custom field to be copied and synced with it's translations** | ||
| + | <code linenums> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | The field can only be updated from the main langage, but is garanteed to be the same on all langages. | ||
| + | |||
| + | ==== Plugin / Theme translation ==== | ||
| + | [[https:// | ||
| + | |||
| + | < | ||
| + | |||
| + | ==== Constante pour récupérer la langue actuelle ==== | ||
| + | > Yes you can make use of WPML Constant ICL_LANGUAGE_CODE | ||
| + | > | ||
| + | > For more information please check following URL | ||
| + | > http:// | ||
| + | |||
| + | ==== Récupérer l'ID du Term original depuis celle d'un Term traduit ==== | ||
| + | [[https:// | ||
| + | |||
| + | <code linenums> | ||
| + | $original_tax_id = icl_object_id( $Term_Obj-> | ||
| + | </ | ||