Filter hook 'mce_external_languages'

in WP Core File wp-includes/class-wp-editor.php at line 487

Description

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.

Occurrences

Filename Line Number
wp-includes/class-wp-editor.php 487

Parameters

Type Name Description
array $translations Translations for external TinyMCE plugins.
string $editor_id Unique editor identifier, e.g. 'content'.

PHP Doc

/**
						 * 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.
						 *
						 * @since 2.5.0
						 * @since 5.3.0 The `$editor_id` parameter was added.
						 *
						 * @param array  $translations Translations for external TinyMCE plugins.
						 * @param string $editor_id    Unique editor identifier, e.g. 'content'.
						 */