get_page_of_comment
get_page_of_comment ( $comment_id, $args = array() )
Parameters:- (int) comment_id Comment ID.
- (array) args {
Array of optional arguments.
@type string $type Limit paginated comments to those matching a given type.
Accepts 'comment', 'trackback', 'pingback', 'pings'
(trackbacks and pingbacks), or 'all'. Default 'all'.
@type int $per_page Per-page count to use when calculating pagination.
Defaults to the value of the 'comments_per_page' option.
@type int|string $max_depth If greater than 1, comment page will be determined
for the top-level parent `$comment_id`.
Defaults to the value of the 'thread_comments_depth' option.
}
Returns:- (int|null) Comment page number or null on error.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Calculates what page number a comment will appear on for comment paging.