Parses an ‘order’ query variable and cast it to ‘ASC’ or ‘DESC’ as necessary.
WP_Site_Query::parse_orderby
Parses and sanitizes ‘orderby’ keys passed to the site query.
WP_Site_Query::get_search_sql
Used internally to generate an SQL string for searching across multiple columns.
found_sites_query
Filters the query used to retrieve found site count.
Advertisement
WP_Site_Query::set_found_sites
Populates found_sites and max_num_pages properties for the current query if the limit clause was used.
sites_clauses
Filters the site query clauses.
site_search_columns
Filters the columns to search in a WP_Site_Query search.
WP_Site_Query::get_site_ids
Used internally to get a list of site IDs matching the query vars.
Advertisement
the_sites
Filters the site query results.
sites_pre_query
Filter the site data before the get_sites query takes place.
pre_get_sites
Fires before sites are retrieved.
WP_Site_Query::get_sites
Retrieves a list of sites matching the query vars.
Advertisement
WP_Site_Query::query
Sets up the WordPress query for retrieving sites.
parse_site_query
Fires after the site query vars have been parsed.
WP_Site_Query::parse_query
Parses arguments passed to the site query with default query parameters.