WP_Site_Query
Core class used for querying sites.
Core class used for querying sites.
Sets up the site query, based on the query vars passed.
Used internally to generate an SQL string for searching across multiple columns.
Used internally to get a list of site IDs matching the query vars.
Retrieves a list of sites matching the query vars.
Parses an ‘order’ query variable and cast it to ‘ASC’ or ‘DESC’ as necessary.
Parses and sanitizes ‘orderby’ keys passed to the site query.
Parses arguments passed to the site query with default query parameters.
Sets up the WordPress query for retrieving sites.
Populates found_sites and max_num_pages properties for the current query if the limit clause was used.