posts_pre_query

最后更新于:2021-11-27 15:15:27

apply_filters_ref_array( ‘posts_pre_query’, GC_Post[]|int[]|null $posts, GC_Query $query )

Filters the posts array before the query takes place.

参数

$posts

(GC_Post[]|int[]|null)
响应 an array of post data to short-circuit GC’s query, or null to allow GC to run its normal queries.

$query

(GC_Query)
The GC_Query instance (passed by reference).

源文件

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

View on Trac