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
-
$page
int -
Comment page.
-
$args
array -
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
.
type
stringType of comments to count.page
intCalculated current page.per_page
intCalculated number of comments per page.max_depth
intMaximum comment threading depth allowed.
-
$original_args
array -
Array of arguments passed to the function. Some or all of these may not be set.
type
stringType of comments to count.page
intCurrent comment page.per_page
intNumber of comments per page.max_depth
intMaximum comment threading depth allowed.
-
$comment_id
int -
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 );
Changelog
Version | Description |
---|---|
4.7.0 | Introduced the $comment_id parameter. |
4.4.0 | Introduced. |