W3cubDocs

/WordPress

do_action_ref_array( ‘parse_query’, WP_Query $query )

Fires after the main query vars have been parsed.

Parameters

$queryWP_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

do_action_ref_array( 'parse_query', array( &$this ) );

Changelog

Version Description
1.5.0 Introduced.

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