Reference › Hooks apply_filters( 'mce_external_languages' , array $translations , string $editor_id )
Since 2.5.0, 5.3.0 Description Parameters Fired at Source History 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'. Fired at · 1 wp-includes/class-wp-editor.php:489_WP_Editors::editor_settings() Source View on Trac ↗ View on GitHub ↗
483 * @since 2.5 .0 484 * @since 5.3 .0 The `$editor_id` parameter was added. 485 * 486 * @param array $translations Translations for external TinyMCE plugins. 487 * @param string $editor_id Unique editor identifier, e. g. 'content' . 488 * / 489 $mce_external_languages = apply_filters ( 'mce_external_languages' , array ( ) , $editor_id ) ; 490 491 $loaded_langs = array ( ) ; 492 $strings = '' ; 493 494 if ( ! empty ( $mce_external_languages ) ) { 495 foreach ( $mce_external_languages as $name => $path ) { History Introduced in 2.5.0 . Unchanged from 6.7.7 through 7.1.0.
6.7.7 6.8.8 6.9.7 7.0.4 7.1.0 Signature, return type and hooks compared across 5 parsed releases.
5.3.0
The $editor_id parameter was added.from the docblock
2.5.0
Introduced.from the docblock
About this page Parsed data Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. Corrections Something wrong on this page? Report it and it gets fixed in the next regeneration.