WPDev.one
Core Function
View Source on Trac ↗

get_page_of_comment()

get_page_of_comment( mixed $comment_id, mixed $args = array() )

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

Parameters 2 required

Name / Type Description
$comment_id
int

Comment ID.

Required
array

$args { Array of optional arguments.

Required

Return Value

((int)
| null) Comment page number or null on error.

Function Information

Since Version
2.7.0
Source File
wp-includes/comment.php
Advertisement