Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
get_page_of_comment() - 计算评论将出现在评论分页的第几页 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / get_page_of_comment()

get_page_of_comment( int $comment_ID, array $args = array() )

计算评论将出现在评论分页的第几页


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 4 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "8a120dc4a793b62501729a9a51316687" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "5177403a4cd724118fe7ec2daf06e335" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "cf1796337c3b64ce10056c95b4a24ce4" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

comment 评论more...

pagemore...


参数

$comment_ID

(int)(必填) 评论ID。

$args

(array)(可选) 可选参数的数组。

  • 'type'
    (string) 将分页评论限制为与给定类型匹配的评论。接受'comment','trackback','pingback','pings',或'all'。默认值为'all'。
  • 'per_page'
    (int) 计算分页时使用的每页计数。默认为'comments_per_page'选项的值。
  • 'max_depth'
    (int|string) 如果大于1,将为顶层(top-level)父级$comment_ID确定评论页。默认为'thread_comments_depth'选项的值。

默认值: array()


返回

(int|null) 评论页码或错误时为null。



源码

查看源码 官方文档


更新日志

版本描述
2.7.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194