apply_filters_ref_array( 'networks_pre_query', array|null $site_ids, WP_Network_Query $this )

Filter the sites array before the query takes place.

Description Description

Return a non-null value to bypass WordPress’s default site queries.

Parameters Parameters


(array|null) Return an array of site data to short-circuit WP's site query, or null to allow WP to run its normal queries.


(WP_Network_Query) The WP_Network_Query instance, passed by reference.

Top ↑

Source Source

File: wp-includes/class-wp-network-query.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.