Hi,
Thank you for using CusRev.
You can use this filter hook comments_per_page to change the number of reviews in the list table.
https://developer.wordpress.org/reference/hooks/comments_per_page/
@pear8398 thankyou – i’m a newb when it comes to editing code.
I found the source file and line in question, but unfamiliar with how to structure / edit the code appropiately.
If i wanted 250 comments per page, what would i change and where
Thanks
public function get_per_page( $comment_status = 'all' ) {
$comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' );
/**
* Filters the number of comments listed per page in the comments list table.
*
* @since 2.6.0
*
* @param int $comments_per_page The number of comments to list per page.
* @param string $comment_status The comment status name. Default 'All'.
*/
return apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
}
Hi,
This is an example: You can add the code below to the file functions.php in the theme folder.
add_filter( 'comments_per_page', function( $comments_per_page ) {
return 200;
} );
If you are not familiar with coding, you can contact an expert developer to help you in this case.