apply_filters_ref_array( 'the_networks', \WP_Network[] $_networks, WP_Network_Query $query )
- Since
- 4.6.0
Filters the network query results.
Parameters
$_networks\WP_Network[]- An array of WP_Network objects.
$queryWP_Network_Query- Current instance of WP_Network_Query (passed by reference).
Fired at · 1
wp-includes/class-wp-network-query.php:318WP_Network_Query::get_networks()
Source
* * @since 4.6.0 * * @param WP_Network[] $_networks An array of WP_Network objects. * @param WP_Network_Query $query 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; }History
Introduced in 4.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.