Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: media_buttons

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
1501           <?php } else {
1502                add_filter('the_editor_content', 'wp_richedit_pre'); ?>
1503                <a id="edButtonHTML" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a>
1504                <a id="edButtonPreview" class="active" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a>
1505           <?php }
1506           }
1507
1508           if ( $media_buttons ) { ?>
1509                <div id="media-buttons" class="hide-if-no-js">
1510                <?php do_action( 'media_buttons' ); ?>
1511                </div>
1512           <?php } ?>
1513      </div>
1514      <?php } ?>
1515
1516      <div id="quicktags">
1517      <?php wp_print_scripts( 'quicktags' ); ?>
1518      <script type="text/javascript">edToolbar()</script>
1519      </div>