我正在构建某种评论档案,我在看:http://codex.wordpress.org/Function_Reference/get_comments
没有看到任何"阵列"可以帮助我…
这是我代码的一部分:
function process_post(){
Function sheker() {
$args = array(
what to put here ??????????????
);
// The Query
$comments_query = new WP_Comment_Query;
$comments = $comments_query->query( $args );
// Comment Loop
有什么想法吗?
使用以下代码,您可以获得所有已批准的注释(检查参数)
$args = array('status'=>'approve');
$comments = new WP_Comment_Query( $args );