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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
1271      );
1272
1273      // For people who really REALLY know what they're doing with TinyMCE
1274      // You can modify initArray to add, remove, change elements of the config before tinyMCE.init
1275      // Setting "valid_elements", "invalid_elements" and "extended_valid_elements" can be done through "tiny_mce_before_init".
1276      // Best is to use the default cleanup by not specifying valid_elements, as TinyMCE contains full set of XHTML 1.0.
1277      if ( $teeny ) {
1278           $initArray = apply_filters('teeny_mce_before_init', $initArray);
1279      } else {
1280           $initArray = apply_filters('tiny_mce_before_init', $initArray);
1281      }
1282
1283      $language = $initArray['language'];
1284
1285      $ver = apply_filters('tiny_mce_version', '3101');
1286
1287      if ( 'en' != $language )
1288           include_once(ABSPATH . WPINC . '/js/tinymce/langs/wp-langs.php');
1289