首页 WordPress函数大全 get_comment_pages_count()

get_comment_pages_count()

2020-05-01 / 2744阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_comment_pages_count( WP_Comment[] $comments = null, int $per_page = null, bool $threaded = null )

Calculate the total number of comment pages.

描述

参数

$comments

(WP_Comment[])
(Optional)
Array of WP_Comment objects. Defaults to $wp_query->comments.

Default value: null

$per_page

(int)
(Optional)
Comments per page.

Default value: null

$threaded

(bool)
(Optional)
Control over flat or threaded comments.

Default value: null

返回

(int) Number of comment pages.

大家谈论
    我的见解