parse_query WordPress Action Hook
The parse_query hook is one of the most versatile and powerful hooks in WordPress. It is called when a new query is being run on the database and allows you to modify the query before it is executed. This hook is used by many plugins and themes to alter the default behavior of WordPress.
do_action_ref_array( 'parse_query', WP_Query $query ) #
Fires after the main query vars have been parsed.
Parameters
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
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |