comments_per_page filter-hook . WP 1.0
This filter is documented in wp-admin/includes/class-wp-comments-list-table.php
Usage
add_filter( 'comments_per_page', 'filter_function_name_929', 10, 2 ); function filter_function_name_929( $per_page, $comment_status ){ // filter... return $per_page; }
- $per_page
- -
- $comment_status
- -
Where the hook is called
comments_per_page
wp-admin/includes/class-wp-screen.php 1256
$per_page = apply_filters( 'comments_per_page', $per_page, $comment_status );
wp-admin/includes/class-wp-comments-list-table.php 209
return apply_filters( 'comments_per_page', $comments_per_page, $comment_status );