wphooks.info - the_networks

the_networks

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-network-query.php:
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
		}

		/**
		 * Filters the network query results.
		 *
		 * @since 4.6.0
		 *
		 * @param WP_Network[]     $_networks An array of WP_Network objects.
		 * @param WP_Network_Query $this      Current instance of WP_Network_Query (passed by reference).
		 */
		$_networks = apply_filters_ref_array( 'the_networks', array( $_networks, &$this ) );

		// Convert to WP_Network instances
		$this->networks = array_map( 'get_network', $_networks );

		return $this->networks;
	}

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