Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: tiny_mce_before_init

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
1635           $initArray = array_merge($initArray, $settings);
1636
1637      // For people who really REALLY know what they're doing with TinyMCE
1638      // You can modify initArray to add, remove, change elements of the config before tinyMCE.init
1639      // Setting "valid_elements", "invalid_elements" and "extended_valid_elements" can be done through "tiny_mce_before_init".
1640      // Best is to use the default cleanup by not specifying valid_elements, as TinyMCE contains full set of XHTML 1.0.
1641      if ( $teeny ) {
1642           $initArray = apply_filters('teeny_mce_before_init', $initArray);
1643      } else {
1644           $initArray = apply_filters('tiny_mce_before_init', $initArray);
1645      }
1646
1647      if ( empty($initArray['theme_advanced_buttons3']) && !empty($initArray['theme_advanced_buttons4']) ) {
1648           $initArray['theme_advanced_buttons3'] = $initArray['theme_advanced_buttons4'];
1649           $initArray['theme_advanced_buttons4'] = '';
1650      }
1651
1652      if ( ! isset($concatenate_scripts) )
1653           script_concat_settings();