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
1811                $class = " class='theEditor'";
1812                add_filter('the_editor_content', 'wp_richedit_pre'); ?>
1813                <a id="edButtonHTML" class="hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a>
1814                <a id="edButtonPreview" class="active hide-if-no-js" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a>
1815 <?php     }
1816      }
1817
1818      if ( $media_buttons ) { ?>
1819           <div id="media-buttons" class="hide-if-no-js">
1820 <?php     do_action( 'media_buttons' ); ?>
1821           </div>
1822 <?php
1823      } ?>
1824      </div>
1825 <?php
1826      }
1827 ?>
1828      <div id="quicktags"><?php
1829      wp_print_scripts( 'quicktags' ); ?>