get_approved_comments()

获取所有通过批准的评论

描述

获取文章编号并返回一个对象数组,表示已经被提交并批准的评论。

用法

<?php
  $comment_array = get_approved_comments($post_id); 
?>

参数

$post_id

(integer) (必填) The ID of the post

默认值: None

返回值

$comments (array

The approved comments

历史

添加于 版本: 2.0.0

源文件

current_user_can_for_blog() 函数的代码位于 wp-includes/capabilities.php

相关

原文:http://codex.wordpress.org/Function_Reference/get_approved_comments

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索