mce_external_languages

FILTER wp-includes\class-wp-editor.php (ligne 489) github
Filters the translations loaded for external TinyMCE 3.x plugins. The filter takes an associative array ('plugin_name' => 'path') where 'path' is the include path to the file. The language file should follow the same format as wp_mce_translation(), and should define a variable ($strings) that holds all translated strings.

Paramètres

Entrée :
array(
Sortie :
@param array  $translations Translations for external TinyMCE plugins.
@param string $editor_id    Unique editor identifier, e.g. 'content'.

Utilisation

// Modifier la valeur avec le filtre 'mce_external_languages'
add_filter('mce_external_languages', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(array() {
    // Modifier la valeur
    return array(;
}

Actualités

Chargement des actualités...