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
216      if ( !empty( $_GET['s'] ) )
217           $link = add_query_arg( 's', esc_attr( stripslashes( $_GET['s'] ) ), $link );
218      */
219      $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf(
220           _n( $label[0], $label[1], $num_comments->$status ),
221           number_format_i18n( $num_comments->$status )
222      ) . '</a>';
223 }
224
225 $status_links = apply_filters( 'comment_status_links', $status_links );
226
227 echo implode( " |</li>\n", $status_links) . '</li>';
228 unset($status_links);
229 ?>
230 </ul>
231
232 <p class="search-box">
233      <label class="screen-reader-text" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
234      <input type="text" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" />