wp_mce_translation

FUNCTION wp-includes\class-wp-editor.php (ligne 1455) github
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.

Paramètres

Entrée :
$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

// Utilisation de la fonction wp_mce_translation
$result = wp_mce_translation($mce_locale = '', $json_only = false);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...