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
344
345 if ( ( 'spam' == $comment_status || 'trash' == $comment_status) && current_user_can ('moderate_comments') ) {
346      wp_nonce_field('bulk-destroy', '_destroy_nonce');
347     if ( 'spam' == $comment_status && current_user_can('moderate_comments') ) { ?>
348           <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Spam'); ?>" class="button-secondary apply" />
349 <?php } elseif ( 'trash' == $comment_status && current_user_can('moderate_comments') ) { ?>
350           <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" />
351 <?php }
352 } ?>
353 <?php do_action('manage_comments_nav', $comment_status); ?>
354 </div>
355
356 <br class="clear" />
357
358 </div>
359
360 <div class="clear"></div>
361
362 <?php if ( $comments ) { ?>
 
Line Code
417 <?php endif; ?>
418 </select>
419 <input type="submit" name="doaction2" id="doaction2" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary apply" />
420
421 <?php if ( 'spam' == $comment_status && current_user_can('moderate_comments') ) { ?>
422 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Spam'); ?>" class="button-secondary apply" />
423 <?php } elseif ( 'trash' == $comment_status && current_user_can('moderate_comments') ) { ?>
424 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" />
425 <?php } ?>
426 <?php do_action('manage_comments_nav', $comment_status); ?>
427 </div>
428
429 <br class="clear" />
430 </div>
431
432 </form>
433
434 <form id="get-extra-comments" method="post" action="" class="add:the-extra-comment-list:" style="display: none;">
435      <input type="hidden" name="s" value="<?php echo esc_attr($search); ?>" />