• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Code Reference

Skip to content
Filter by type:
Search
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:340

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:729

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:746

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:773

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:855

Used by 1 function | Uses 0 functions

sites_clauses

Filter Hook: Filters the site query clauses.

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

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:717

Used by 1 function | Uses 3 functions

WP_Site_Query::query()

Method: Sets up the WordPress query for retrieving sites.

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

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:284

Used by 1 function | Uses 15 functions

pre_get_sites

Action Hook: Fires before sites are retrieved.

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

Used by 1 function | Uses 0 functions

the_sites

Filter Hook: Filters the site query results.

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

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:435

Used by 1 function | Uses 14 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:622

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:17

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:187

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:242

Used by 1 function | Uses 3 functions

parse_site_query

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

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

Used by 1 function | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Support
  • 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
Code is Poetry