Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_comments_nav

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

This hook occurs 2 times in this file.

Line Code
367
368 if ( ( 'spam' == $comment_status || 'trash' == $comment_status) && current_user_can ('moderate_comments') ) {
369      wp_nonce_field('bulk-destroy', '_destroy_nonce');
370     if ( 'spam' == $comment_status && current_user_can('moderate_comments') ) { ?>
371           <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Spam'); ?>" class="button-secondary apply" />
372 <?php } elseif ( 'trash' == $comment_status && current_user_can('moderate_comments') ) { ?>
373           <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" />
374 <?php }
375 } ?>
376 <?php do_action('manage_comments_nav', $comment_status); ?>
377 </div>
378
379 <br class="clear" />
380
381 </div>
382
383 <div class="clear"></div>
384 <?php if ( $comments ) { ?>
385
 
Line Code
440 <?php endif; ?>
441 </select>
442 <input type="submit" name="doaction2" id="doaction2" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary apply" />
443
444 <?php if ( 'spam' == $comment_status && current_user_can('moderate_comments') ) { ?>
445 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Spam'); ?>" class="button-secondary apply" />
446 <?php } elseif ( 'trash' == $comment_status && current_user_can('moderate_comments') ) { ?>
447 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" />
448 <?php } ?>
449 <?php do_action('manage_comments_nav', $comment_status); ?>
450 </div>
451
452 <br class="clear" />
453 </div>
454
455 </form>
456
457 <form id="get-extra-comments" method="post" action="" class="add:the-extra-comment-list:" style="display: none;">
458      <input type="hidden" name="s" value="<?php echo esc_attr($search); ?>" />