WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
121 |
|
122 | <div id="postdiv" class="postarea"> |
123 | <?php |
124 | $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ); |
125 | wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); |
126 | wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> |
127 | </div> |
128 |
|
129 | <?php |
130 | do_action('add_meta_boxes', 'comment', $comment); |
131 | do_action('add_meta_boxes_comment', $comment); |
132 |
|
133 | do_meta_boxes(null, 'normal', $comment); |
134 | ?> |
135 | <input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" /> |
136 | <input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" /> |
137 | <input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" /> |
138 | <?php wp_original_referer_field(true, 'previous'); ?> |
139 | <input type="hidden" name="noredir" value="1" /> |