parse_network_query
Fires after the network query vars have been parsed.
Usage
add_action( 'parse_network_query', 'wp_kama_parse_network_query_action' ); /** * Function for `parse_network_query` action-hook. * * @param WP_Network_Query $query The WP_Network_Query instance (passed by reference). * * @return void */ function wp_kama_parse_network_query_action( $query ){ // action... }
- $query(WP_Network_Query)
- The WP_Network_Query instance (passed by reference).
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
parse_network_query
wp-includes/class-wp-network-query.php 164
do_action_ref_array( 'parse_network_query', array( &$this ) );