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