Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: mce_plugins

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
89      echo wp_translate_tinymce_lang(file_get_contents($themeLanguageFile));
90
91      $tinymceLanguageFile = realpath("langs/" . $locale . ".js");
92
93      if (!file_exists($tinymceLanguageFile))
94           $tinymceLanguageFile = realpath("langs/en.js");
95      echo wp_translate_tinymce_lang(file_get_contents($tinymceLanguageFile));
96
97      // Load all plugins and their language packs
98      $plugins = apply_filters('mce_plugins', array('wordpress', 'autosave','wphelp'));
99
100      foreach ($plugins as $plugin) {
101           $pluginFile = realpath("plugins/" . $plugin . "/editor_plugin.js");
102           $languageFile = realpath("plugins/" . $plugin . "/langs/" . $locale . ".js");
103           if (!file_exists($languageFile))
104                $languageFile = realpath("plugins/" . $plugin . "/langs/en.js");
105
106           if ($pluginFile)
107                echo file_get_contents($pluginFile);