networks_pre_query

最后更新于:2021-11-27 09:11:12

apply_filters_ref_array( ‘networks_pre_query’, array|int|null $network_data, GC_Network_Query $query )

Filters the network data before the query takes place.

参数

$network_data

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

$query

(GC_Network_Query)
The GC_Network_Query instance, passed by reference.

源文件

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

View on Trac