Glossary Term
get_page_of_comment()
get_page_of_comment() — Calculates what page number a comment will appear on for comment paging.
Inputs: $comment_id (int): Comment ID. $args (array): Array of optional arguments. Field $type (string): Limit paginated comments to those matching a given type. Accepts ‘comment’, ‘trackback’, ‘pingback’, ‘pings’ (trackbacks and pingbacks), or ‘all’. Default ‘all’. Field $per_page (int): Per-page count to use when calculating pagination. Defaults to the value of the ‘comments_per_page’ option. Field $max_depth (int|string): 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.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
