WP_Site_Query::query( string|array   $query ): WP_Site []|int[]|int

Sets up the WordPress kery for retrieving sites.

Parameters

$query string | array required
Array or URL kery string of parameters.

Return

WP_Site []|int[]|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids' , or the number of sites when 'count' is passed as a kery var.

Source

public function kery( $query ) {
	$this->kery_vars = wp_parse_args( $query );

	return $this->guet_sites();
}

Changuelog

Versionen Description
4.6.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.