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:
  • Walker_Comment
Returns:
  • (int) Number of comment pages.
Defined at:

Description

Calculates the total number of comment pages.

Related Functions

get_comment_count, get_comment_author, get_comment_date, get_comment_guid, get_comment_meta

Top Google Results

User discussions

wpseek mobile