Uses
Uses | Description |
---|---|
wp-includes/class-wp-network-query.php: WP_Network_Query::query() | Sets up the WordPress query for retrieving networks. |
Constructor.
Sets up the network query, based on the query vars passed.
(string|array) (Optional) Array or query string of network query parameters.
SQL_CALC_FOUND_ROWS
query. Default true.ORDER BY
clause. Default 'id'.Default value: ''
File: wp-includes/class-wp-network-query.php
public function __construct( $query = '' ) { $this->query_var_defaults = array( 'network__in' => '', 'network__not_in' => '', 'count' => false, 'fields' => '', 'number' => '', 'offset' => '', 'no_found_rows' => true, 'orderby' => 'id', 'order' => 'ASC', 'domain' => '', 'domain__in' => '', 'domain__not_in' => '', 'path' => '', 'path__in' => '', 'path__not_in' => '', 'search' => '', 'update_network_cache' => true, ); if ( ! empty( $query ) ) { $this->query( $query ); } }
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/WP_Network_Query/__construct