WPDev.one
Core Class

WP_Network_Query

class WP_Network_Query // Constructor: function Object() { [native code] }

Core class used for querying networks.

Methods 9 methods

Method / Return Description
__construct()
void

Constructor.

Parameters: $query: mixed
parse_query()
void

Parses arguments passed to the network query with default query parameters.

Parameters: $query: mixed
query()
(array

Sets up the WordPress query for retrieving networks.

Parameters: $query: mixed
get_networks()
(array

Gets a list of networks matching the query vars.

get_network_ids()
(int

Used internally to get a list of network IDs matching the query vars.

set_found_networks()
void

Populates found_networks and max_num_pages properties for the current query

get_search_sql()
string

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

Parameters: $search: mixed, $columns: mixed
parse_orderby()
(string

Parses and sanitizes 'orderby' keys passed to the network query.

Parameters: $orderby: mixed
parse_order()
string

Parses an 'order' query variable and cast it to 'ASC' or 'DESC' as necessary.

Parameters: $order: mixed

Properties

Property / Type Description
$request
mixed
public
No description available.
$sql_clauses
mixed
public
No description available.
$query_vars
mixed
public
No description available.
$query_var_defaults
mixed
public
No description available.
$networks
mixed
public
No description available.
$found_networks
mixed
public
No description available.
$max_num_pages
mixed
public
No description available.

Class Information

Since Version
4.6.0
Source File
wp-includes/class-wp-network-query.php
Advertisement