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 |
---|---|
107 | $valid_elements = '-a[id|href|title|rel],-strong/b,-em/i,-strike,-del,-u,p[class|align|dir],-ol,-ul,-li,br,img[class|src|alt|title|width|height|align],-sub,-sup,-blockquote[dir],-table[border|cellspacing|cellpadding|width|height|class|align|dir],thead[class|rowspan|width|height|align|valign|dir],tr[class|rowspan|width|height|align|valign|dir],th[dir|class|colspan|rowspan|width|height|align|valign|scope],td[dir|class|colspan|rowspan|width|height|align|valign],-div[dir|class|align],-span[class|align],-pre[class],-code[class],-address,-h1[class|align|dir],-h2[class|align|dir],-h3[class|align|dir],-h4[class|align|dir],-h5[class|align|dir],-h6[class|align|dir],hr'; |
108 | $valid_elements = apply_filters('mce_valid_elements', $valid_elements); |
109 | $plugins = implode($plugins, ','); |
110 | $mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'justifyleft', 'justifycenter', 'justifyright' ,'separator', 'link', 'unlink', 'image', 'wordpress', 'separator', 'undo', 'redo', 'code', 'wphelp')); |
111 | $mce_buttons = implode($mce_buttons, ','); |
112 | $mce_buttons_2 = apply_filters('mce_buttons_2', array()); |
113 | $mce_buttons_2 = implode($mce_buttons_2, ','); |
114 | $mce_buttons_3 = apply_filters('mce_buttons_3', array()); |
115 | $mce_buttons_3 = implode($mce_buttons_3, ','); |
116 | $mce_browsers = apply_filters('mce_browsers', array('msie', 'gecko', 'opera')); |
117 | $mce_browsers = implode($mce_browsers, ','); |
118 | ?> |
119 |
|
120 | initArray = { |
121 | mode : "specific_textareas", |
122 | textarea_trigger : "title", |
123 | width : "100%", |
124 | theme : "advanced", |
125 | theme_advanced_buttons1 : "<?php echo $mce_buttons; ?>", |