This page redirects to an external site: https://developer.wordpress.org/reference/hooks/parse_query/
parse_query is an action triggered after WP_Query->parse_query() has set up query variables (such as the various is_ variables used for conditional tags).
A registered action function is passed the following parameters.
add_action('parse_query', 'set_custom_isvars');
function set_custom_isvars( $wp_query ) {
$wp_query->is_foo = ...
}
wp-includes/classes.php since 1.5wp-includes/classes.php to wp-includes/query.php in 2.1Triggered by WP_Query->parse_query() in wp-includes/query.php.