WP_Site_Query::get_sites

SummerySummery

Retrieves a list of sites matching the query vars.

Syntax

WP_Site_Query::get_sites()

ReturnReturn

(array|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 query var.

SourceSource

File: wp-includes/class-wp-site-query.php


			

ChangelogChangelog

Changelog
Version Description
4.6.0 Introduced.
Scroll to Top