WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
173 | </ul> |
174 |
|
175 | <p class="search-box"> |
176 | <label class="hidden" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label> |
177 | <input type="text" class="search-input" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" /> |
178 | <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" /> |
179 | </p> |
180 |
|
181 | <?php |
182 | $comments_per_page = apply_filters('comments_per_page', 20, $comment_status); |
183 |
|
184 | if ( isset( $_GET['apage'] ) ) |
185 | $page = abs( (int) $_GET['apage'] ); |
186 | else |
187 | $page = 1; |
188 |
|
189 | $start = $offset = ( $page - 1 ) * $comments_per_page; |
190 |
|
191 | list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $post_id, $comment_type ); // Grab a few extra |