the_networks
Filters the network query results.
Usage
add_filter( 'the_networks', 'wp_kama_the_networks_filter' ); /** * Function for `the_networks` filter-hook. * * @param WP_Network[] $_networks An array of WP_Network objects. * * @return WP_Network[] */ function wp_kama_the_networks_filter( $_networks ){ // filter... return $_networks; }
- $_networks(WP_Network[])
- An array of WP_Network objects.
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-network-query.php 309
$_networks = apply_filters_ref_array( 'the_networks', array( $_networks, &$this ) );