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