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 |
|---|---|
| 69 | echo "\n\n"; |
| 70 | |
| 71 | // Remove some functions |
| 72 | echo "\n/* WP cancels all TinyMCE language and import handling */\n"; |
| 73 | echo "TinyMCE.prototype.importThemeLanguagePack = function() {};\n"; |
| 74 | echo "TinyMCE.prototype.importPluginLanguagePack = function() {};\n\n"; |
| 75 | echo "TinyMCE.prototype.loadScript = function() {};\n"; |
| 76 | |
| 77 | // Load theme, language pack and theme language packs |
| 78 | $theme = apply_filters('mce_theme', 'advanced'); |
| 79 | |
| 80 | echo wp_compact_tinymce_js(file_get_contents(realpath("themes/" . $theme . "/editor_template.js"))); |
| 81 | |
| 82 | // Get the WordPress locale |
| 83 | $locale = get_locale(); |
| 84 | |
| 85 | $themeLanguageFile = realpath("themes/" . $theme . "/langs/" . $locale . ".js"); |
| 86 | |
| 87 | if (!file_exists($themeLanguageFile)) |