do_action_ref_array( 'parse_query', WP_Query $query )

Fires after the main query vars have been parsed.

Parameters

$query

(WP_Query) The WP_Query instance (passed by reference).

More Information

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).

Source

File: wp-includes/class-wp-query.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/parse_query