wp-includes/class-wp-network-query.php:17Core class used for querying networks.
Every hook that fires from inside WP_Network_Query, in the order it appears in the class, grouped by the method that fires it.
$requeststringpublic$sql_clausesarray{protected$query_varsarray<string,public$query_var_defaultsarray<string,public$networksWP_Network[]|int[]public$found_networksintpublic$max_num_pagesintpublic#[AllowDynamicProperties]class WP_Network_Query { /** * SQL for database query. * * @since 4.6.0 * @var string */ public $request; /** * SQL query clauses. * * @since 4.6.0 * @var array{ * select: string, * from: string, * where: array<string, string>, * groupby: string, * orderby: string, * limits: string * } */ protected $sql_clauses = array( 'select' => '', 'from' => '', 'where' => array(), 'groupby' => '', 'orderby' => '', 'limits' => '', ); /** * Query vars set by the user. * * @since 4.6.0 * @var array<string, mixed> */ public $query_vars; /** * Default values for query vars. * * @since 4.6.0 * @var array<string, mixed> */ public $query_var_defaults; /** * List of networks located by the query. * * @since 4.6.0 * @var WP_Network[]|int[] */ public $networks; /** * The amount of found networks for the current query. * * @since 4.6.0 * @var int * @phpstan-var non-negative-int */ public $found_networks = 0; /** * The number of pages. * * @since 4.6.0 * @var int * @phpstan-var non-negative-int */ public $max_num_pages = 0; /** * Constructor. * * Sets up the network query, based on the query vars passed. *Introduced in 4.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-network-query.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.