WordPress at Your Fingertips
function is not described

WP_Comments_List_Table::get_per_page() public WP 1.0

{} It's a method of the class: WP_Comments_List_Table{}

Hooks from the method

Return

Int.

Usage

$WP_Comments_List_Table = new WP_Comments_List_Table();
$WP_Comments_List_Table->get_per_page( $comment_status );
$comment_status(string)
-
Default: 'all'

Code of WP_Comments_List_Table::get_per_page() WP 5.8.2

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 );
}