comments_pre_query

最后更新于:2021-11-26 00:53:19

apply_filters_ref_array( ‘comments_pre_query’, array|int|null $comment_data, GC_Comment_Query $query )

Filters the comments data before the query takes place.

参数

$comment_data

(array|int|null)
响应 an array of comment data to short-circuit GC’s comment query, the comment count as an integer if $this->query_vars['count'] is set, or null to allow GC to run its normal queries.

$query

(GC_Comment_Query)
The GC_Comment_Query instance, passed by reference.

源文件

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

View on Trac