On this page
apply_filters( 'get_page_of_comment', int $page, array $args, array $original_args, int $comment_ID )
Filters the calculated page on which a comment appears.
Parameters
$pageint-
Comment page.
$argsarray-
Arguments used to calculate pagination. These include arguments auto-detected by the function, based on query vars, system settings, etc. For pristine arguments passed to the function, see
$original_args.
typestringType of comments to count.pageintCalculated current page.per_pageintCalculated number of comments per page.max_depthintMaximum comment threading depth allowed.
$original_argsarray-
Array of arguments passed to the function. Some or all of these may not be set.
typestringType of comments to count.pageintCurrent comment page.per_pageintNumber of comments per page.max_depthintMaximum comment threading depth allowed.
$comment_IDint-
ID of the comment.
Source
File: wp-includes/comment.php. View all references
return apply_filters( 'get_page_of_comment', (int) $page, $args, $original_args, $comment_ID );
Related
Used By
| Used By | Description |
|---|---|
| get_page_of_comment() wp-includes/comment.php | Calculates what page number a comment will appear on for comment paging. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_page_of_comment