Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: add_meta_boxes

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
119 </div>
120 </div>
121
122 <div id="postdiv" class="postarea">
123 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4, false); ?>
124 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
125 </div>
126
127 <?php
128 do_action('add_meta_boxes', 'comment', $comment);
129 do_action('add_meta_boxes_comment', $comment);
130
131 do_meta_boxes('comment', 'normal', $comment);
132 ?>
133 <input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" />
134 <input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" />
135 <input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
136 <?php wp_original_referer_field(true, 'previous'); ?>
137 <input type="hidden" name="noredir" value="1" />