wphooks.info - the_sites

the_sites

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-site-query.php:
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
		}

		/**
		 * Filters the site query results.
		 *
		 * @since 4.6.0
		 *
		 * @param WP_Site[]     $_sites An array of WP_Site objects.
		 * @param WP_Site_Query $this   Current instance of WP_Site_Query (passed by reference).
		 */
		$_sites = apply_filters_ref_array( 'the_sites', array( $_sites, &$this ) );

		// Convert to WP_Site instances.
		$this->sites = array_map( 'get_site', $_sites );

		return $this->sites;
	}

	/**
	 * Used internally to get a list of site IDs matching the query vars.