Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_editor

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
1679 <?php
1680      }
1681 ?>
1682      <div id="quicktags"><?php
1683      wp_print_scripts( 'quicktags' ); ?>
1684      <script type="text/javascript">edToolbar()</script>
1685      </div>
1686
1687 <?php
1688      $the_editor = apply_filters('the_editor', "<div id='editorcontainer'><textarea rows='$rows'$class cols='40' name='$id' tabindex='$tab_index' id='$id'>%s</textarea></div>\n");
1689      $the_editor_content = apply_filters('the_editor_content', $content);
1690
1691      printf($the_editor, $the_editor_content);
1692
1693 ?>
1694      <script type="text/javascript">
1695      edCanvas = document.getElementById('<?php echo $id; ?>');
1696      </script>
1697 <?php