File: wp-includes/class-wp-site-query.php
-
hooksites_pre_query
Filters the site data before the get_sites query takes place.
-
Filters the query used to retrieve found site count.
-
Used internally to generate an SQL string for searching across multiple columns.
-
Parses and sanitizes ‘orderby’ keys passed to the site query.
-
Parses an ‘order’ query variable and cast it to ‘ASC’ or ‘DESC’ as necessary.
-
Populates found_sites and max_num_pages properties for the current query if the limit clause was used.
-
methodWP_Site_Query::query()
Sets up the WordPress query for retrieving sites.
-
Retrieves a list of sites matching the query vars.
-
hookpre_get_sites
Fires before sites are retrieved.
-
hookthe_sites
Filters the site query results.
-
Used internally to get a list of site IDs matching the query vars.
-
Filters the columns to search in a WP_Site_Query search.
-
hooksites_clauses
Filters the site query clauses.
-
classWP_Site_Query
Core class used for querying sites.
-
Sets up the site query, based on the query vars passed.
-
Parses arguments passed to the site query with default query parameters.
-
hookparse_site_query
Fires after the site query vars have been parsed.