Translates the default TinyMCE strings and returns them as JSON encoded object ready to be loaded with tinymce.addI18n(), or as JS snippet that should run after tinymce.js is loaded.
$mce_locale = '', $json_only = false
Sortie :
@param string $mce_locale The locale used for the editor. @param bool $json_only Optional. Whether to include the JavaScript calls to tinymce.addI18n() and @return string Translation object, JSON encoded.
// Utilisation de la fonction wp_mce_translation
$result = wp_mce_translation($mce_locale = '', $json_only = false);
if ($result) {
// Votre logique ici
}
Chargement des actualités...