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 |
|---|---|
| 24 | 'closeTags' => attribute_escape(__('close tags')), |
| 25 | 'enterURL' => __('Enter the URL'), |
| 26 | 'enterImageURL' => __('Enter the URL of the image'), |
| 27 | 'enterImageDescription' => __('Enter a description of the image') |
| 28 | ) ); |
| 29 | |
| 30 | $this->add( 'colorpicker', '/wp-includes/js/colorpicker.js', false, '3517' ); |
| 31 | |
| 32 | // Let a plugin replace the visual editor |
| 33 | $visual_editor = apply_filters('visual_editor', array('tiny_mce')); |
| 34 | $this->add( 'editor', false, $visual_editor, '20080321' ); |
| 35 | |
| 36 | $this->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080325' ); |
| 37 | |
| 38 | // Modify this version when tinyMCE plugins are changed. |
| 39 | $mce_version = apply_filters('tiny_mce_version', '20080327'); |
| 40 | $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version ); |
| 41 | |
| 42 | $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6'); |