mce_external_languages

Advertisement

Summery Summery

Filters the translations loaded for external TinyMCE 3.x plugins.

Syntax Syntax

apply_filters( 'mce_external_languages', array $translations, string $editor_id )

Description Description

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.

Parameters Parameters

$translations

Translations for external TinyMCE plugins.

$editor_id

Unique editor identifier, e.g. 'content'.

Source Source

File: wp-includes/class-wp-editor.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 The $editor_id parameter was added.
2.5.0 Introduced.

Advertisement

Leave a Reply