get_comments()
最后更新于:2021-11-26 07:55:20
get_comments( string|array$args=”)Retrieve a list of comments.
参数
- $args
-
(string|array) (Optional) Array or string of arguments. See GC_Comment_Query::__construct() for information on accepted arguments.
Default value: ”
响应
(int|array) List of comments or number of found comments if $count
argument is true.
源文件
文件: gc-includes/comment.php
function get_comments( $args = '' ) {
$query = new GC_Comment_Query;
return $query->query( $args );
}