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
530
531      <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press">
532           <h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4>
533           <div class="input-text-wrap">
534                <input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" />
535           </div>
536
537           <?php if ( current_user_can( 'upload_files' ) ) : ?>
538           <div id="wp-content-wrap" class="wp-editor-wrap hide-if-no-js wp-media-buttons">
539                <?php do_action( 'media_buttons', 'content' ); ?>
540           </div>
541           <?php endif; ?>
542
543           <h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
544           <div class="textarea-wrap">
545                <textarea name="content" id="content" class="mceEditor" rows="3" cols="15" tabindex="2"><?php echo esc_textarea( $post->post_content ); ?></textarea>
546           </div>
547
548           <script type="text/javascript">edCanvas = document.getElementById('content');edInsertContent = null;</script>