WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| 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); |