mce_external_languages

mce_external_languages

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('mce_external_languages') is found 1 times:

  • /wp-includes/class-wp-editor.php line 489
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    *
     * @param array  $translations Translations for external TinyMCE plugins.
     * @param string $editor_id    Unique editor identifier, e.g. 'content'.
     */
    $mce_external_languages = apply_filters( 'mce_external_languages', array(), $editor_id );
     
    $loaded_langs = array();
    $strings      = '';
     
    if ( ! empty( $mce_external_languages ) ) {
        foreach ( $mce_external_languages as $name => $path ) {

See this hook used in plugins: