Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-site-query.php

sites_pre_query

Filter Hook: Filters the site data before the get_sites query takes place.

Source: wp-includes/class-wp-site-query.php:341

Used by 1 function | Uses 0 functions

found_sites_query

Filter Hook: Filters the query used to retrieve found site count.

Source: wp-includes/class-wp-site-query.php:732

Used by 1 function | Uses 0 functions

WP_Site_Query::get_search_sql()

Method: Used internally to generate an SQL string for searching across multiple columns.

Source: wp-includes/class-wp-site-query.php:749

Used by 1 function | Uses 2 functions

WP_Site_Query::parse_orderby()

Method: Parses and sanitizes ‘orderby’ keys passed to the site query.

Source: wp-includes/class-wp-site-query.php:776

Used by 1 function | Uses 0 functions

WP_Site_Query::parse_order()

Method: Parses an ‘order’ query variable and cast it to ‘ASC’ or ‘DESC’ as necessary.

Source: wp-includes/class-wp-site-query.php:858

Used by 1 function | Uses 0 functions

WP_Site_Query::set_found_sites()

Method: Populates found_sites and max_num_pages properties for the current query if the limit clause was used.

Source: wp-includes/class-wp-site-query.php:720

Used by 1 function | Uses 2 functions

WP_Site_Query::query()

Method: Sets up the WordPress query for retrieving sites.

Source: wp-includes/class-wp-site-query.php:269

Used by 1 function | Uses 2 functions

WP_Site_Query::get_sites()

Method: Retrieves a list of sites matching the query vars.

Source: wp-includes/class-wp-site-query.php:285

Used by 1 function | Uses 12 functions

pre_get_sites

Action Hook: Fires before sites are retrieved.

Source: wp-includes/class-wp-site-query.php:301

Used by 1 function | Uses 0 functions

the_sites

Filter Hook: Filters the site query results.

Source: wp-includes/class-wp-site-query.php:419

Used by 1 function | Uses 0 functions

WP_Site_Query::get_site_ids()

Method: Used internally to get a list of site IDs matching the query vars.

Source: wp-includes/class-wp-site-query.php:436

Used by 1 function | Uses 12 functions

site_search_columns

Filter Hook: Filters the columns to search in a WP_Site_Query search.

Source: wp-includes/class-wp-site-query.php:623

Used by 1 function | Uses 0 functions

sites_clauses

Filter Hook: Filters the site query clauses.

Source: wp-includes/class-wp-site-query.php:662

Used by 1 function | Uses 0 functions

WP_Site_Query

Class: Core class used for querying sites.

Source: wp-includes/class-wp-site-query.php:18

Used by 0 functions | Uses 0 functions

WP_Site_Query::__construct()

Method: Sets up the site query, based on the query vars passed.

Source: wp-includes/class-wp-site-query.php:188

Used by 2 functions | Uses 1 function

WP_Site_Query::parse_query()

Method: Parses arguments passed to the site query with default query parameters.

Source: wp-includes/class-wp-site-query.php:243

Used by 1 function | Uses 2 functions

parse_site_query

Action Hook: Fires after the site query vars have been parsed.

Source: wp-includes/class-wp-site-query.php:257

Used by 1 function | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry