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:

Description

Calculates what page number a comment will appear on for comment paging.

Related Functions

get_comment, get_comments, get_approved_comments, the_comment, get_date_from_gmt

Top Google Results

User discussions

wpseek mobile