1. 首页
  2. WordPress 函数手册

get_pending_comments_num()

get_pending_comments_num( int|array $post_id )

获取一个或多个帖子的挂起评论数
Get the number of pending comments on a post or posts

目录锚点:#参数#返回#源码


参数(Parameters)

参数 类型 必填 说明
$post_id (int | array) 必需 单个Post ID或Post ID数组

返回(Return)

(int|array)作为int的单个Posts挂起的注释或Post id上键入的int数组


源码(Source)


更新版本 源码位置 使用 被使用
2.3.0 wp-admin/includes/comment.php:144 5 2

get_pending_comments_num() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_pending_comments_num/