On this page
apply_filters( 'mce_external_languages', array $translations, string $editor_id )
Filters the translations loaded for external TinyMCE 3.x plugins.
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
$translationsarray-
Translations for external TinyMCE plugins.
$editor_idstring-
Unique editor identifier, e.g.
'content'.
Source
File: wp-includes/class-wp-editor.php. View all references
$mce_external_languages = apply_filters( 'mce_external_languages', array(), $editor_id );
Related
Used By
| Used By | Description |
|---|---|
| _WP_Editors::editor_settings() wp-includes/class-wp-editor.php |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/mce_external_languages