Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_status_links

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
102 foreach ( $stati as $status => $label ) {
103      $class = '';
104
105      if ( $status == $comment_status )
106           $class = ' class="current"';
107
108      $status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>';
109 }
110
111 $status_links = apply_filters( 'comment_status_links', $status_links );
112
113 echo implode(' | </li>', $status_links) . '</li>';
114 unset($status_links);
115 ?>
116 </ul>
117
118 <p id="post-search">
119      <label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label>
120      <input type="text" id="post-search-input" name="s" value="<?php echo $search; ?>" />