Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: mce_options

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
171 // For people who really REALLY know what they're doing with TinyMCE
172 // You can modify initArray to add, remove, change elements of the config before tinyMCE.init (changed from action to filter)
173 $initArray = apply_filters('tiny_mce_before_init', $initArray);
174
175 // Setting "valid_elements", "invalid_elements" and "extended_valid_elements" can be done through "tiny_mce_before_init".
176 // Best is to use the default cleanup by not specifying valid_elements, as TinyMCE contains full set of XHTML 1.0.
177
178 // support for deprecated actions
179 ob_start();
180 do_action('mce_options');
181 $mce_deprecated = ob_get_contents();
182 ob_end_clean();
183
184 $mce_deprecated = (string) $mce_deprecated;
185 if ( strlen( $mce_deprecated ) < 10 || ! strpos( $mce_deprecated, ':' ) || ! strpos( $mce_deprecated, ',' ) )     
186      $mce_deprecated = '';
187
188 // Settings for the gzip compression and cache
189 $disk_cache = ( ! isset($initArray['disk_cache']) || false == $initArray['disk_cache'] ) ? false : true;