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 |
---|---|
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(); ?>" /> |
235 | <input type="submit" value="<?php esc_attr_e( 'Search Comments' ); ?>" class="button" /> |
236 | </p> |
237 |
|
238 | <?php |
239 | $comments_per_page = (int) get_user_option( 'edit_comments_per_page', 0, false ); |
240 | if ( empty( $comments_per_page ) || $comments_per_page < 1 ) |
241 | $comments_per_page = 20; |
242 | $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status ); |
243 |
|
244 | if ( isset( $_GET['apage'] ) ) |
245 | $page = abs( (int) $_GET['apage'] ); |
246 | else |
247 | $page = 1; |
248 |
|
249 | $start = $offset = ( $page - 1 ) * $comments_per_page; |
250 |
|
251 | list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 8, $post_id, $comment_type ); // Grab a few extra |