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 |
---|---|
407 |
|
408 | if ( is_array($set['tinymce']) ) |
409 | $mceInit = array_merge($mceInit, $set['tinymce']); |
410 |
|
411 | // For people who really REALLY know what they're doing with TinyMCE |
412 | // You can modify initArray to add, remove, change elements of the config before tinyMCE.init |
413 | // Setting "valid_elements", "invalid_elements" and "extended_valid_elements" can be done through this filter. |
414 | // Best is to use the default cleanup by not specifying valid_elements, as TinyMCE contains full set of XHTML 1.0. |
415 | if ( $set['teeny'] ) { |
416 | $mceInit = apply_filters('teeny_mce_before_init', $mceInit, $editor_id); |
417 | } else { |
418 | $mceInit = apply_filters('tiny_mce_before_init', $mceInit, $editor_id); |
419 | } |
420 |
|
421 | if ( empty($mceInit['theme_advanced_buttons3']) && !empty($mceInit['theme_advanced_buttons4']) ) { |
422 | $mceInit['theme_advanced_buttons3'] = $mceInit['theme_advanced_buttons4']; |
423 | $mceInit['theme_advanced_buttons4'] = ''; |
424 | } |
425 |
|