GC_Comment_Query::query()

最后更新于:2021-11-26 22:41:27

GC_Comment_Query::query( string|array$query)

Sets up the GeChiUI query for retrieving comments.

参数

$query

(string|array) (Required) Array or URL query string of parameters.

响应

(array|int) List of comments, or number of comments when ‘count’ is passed as a query var.

源文件

文件: gc-includes/class-gc-comment-query.php

	public function query( $query ) {
		$this->query_vars = gc_parse_args( $query );
		return $this->get_comments();
	}