get_comment_pages_count
get_comment_pages_count ( $comments = null, $per_page = null, $threaded = null )
Parameters:- (WP_Comment[]) comments Optional. Array of WP_Comment objects. Defaults to `$wp_query->comments`.
- (int) per_page Optional. Comments per page. Defaults to the value of `comments_per_page` query var, option of the same name, or 1 (in that order).
- (bool) threaded Optional. Control over flat or threaded comments. Defaults to the value of `thread_comments` option.
Uses:Returns:- (int) Number of comment pages.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Calculates the total number of comment pages.