get_page_of_comment

最后更新于:2021-11-26 22:48:21

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.

参数

$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’
    (string) Type of comments to count.
  • ‘page’
    (int) Calculated current page.
  • ‘per_page’
    (int) Calculated number of comments per page.
  • ‘max_depth’
    (int) Maximum comment threading depth allowed.

$original_args

(array)
Array of arguments passed to the function. Some or all of these may not be set.

  • ‘type’
    (string) Type of comments to count.
  • ‘page’
    (int) Current comment page.
  • ‘per_page’
    (int) Number of comments per page.
  • ‘max_depth’
    (int) Maximum comment threading depth allowed.

$comment_ID

(int)
ID of the comment.

源文件

文件: gc-includes/comment.php

View on Trac