WordPress hook directory
parse_query

Description

Runs at the end of query parsing in the main query or any instance of WP_Query, such as query_posts, get_posts, or get_children. Action function arguments: WP_Query object by reference.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for parse_query

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
1.5.2 wp-includes/classes.php 204 View in context action
2.0 wp-includes/classes.php 86 View in context action
2.0 wp-includes/classes.php 238 View in context action
2.0.11 wp-includes/classes.php 87 View in context action
2.0.11 wp-includes/classes.php 244 View in context action
2.1 wp-includes/query.php 397 View in context action
2.1 wp-includes/query.php 545 View in context action
2.2 wp-includes/query.php 424 View in context action
2.2 wp-includes/query.php 616 View in context action
2.3 wp-includes/query.php 706 View in context action
2.5 wp-includes/query.php 784 View in context action
2.6 wp-includes/query.php 788 View in context action
2.7 wp-includes/query.php 1502 View in context action
2.8 wp-includes/query.php 1504 View in context action
2.9 wp-includes/query.php 1486 View in context action
3.0 wp-includes/query.php 1549 View in context action
3.1 wp-includes/query.php 1630 View in context action
3.2 wp-includes/query.php 1663 View in context action
3.3 wp-includes/query.php 1675 View in context action
3.4 wp-includes/query.php 1674 View in context action
3.5 wp-includes/query.php 1676 View in context action
3.6 wp-includes/query.php 1676 View in context action
3.7 wp-includes/query.php 1712 View in context action
3.8 wp-includes/query.php 1712 View in context action
3.9 wp-includes/query.php 1724 View in context action
4.0 wp-includes/query.php 1814 View in context action
4.1 wp-includes/query.php 1817 View in context action
4.2 wp-includes/query.php 1827 View in context action
4.3 wp-includes/query.php 1826 View in context action
4.4 wp-includes/query.php 1906 View in context action
4.5 wp-includes/query.php 1869 View in context action
4.6 wp-includes/query.php 1879 View in context action
4.7 wp-includes/class-wp-query.php 1053 View in context action
4.8 wp-includes/class-wp-query.php 1055 View in context action
4.9 wp-includes/class-wp-query.php 1006 View in context action
5.0 wp-includes/class-wp-query.php 1006 View in context action
5.1 wp-includes/class-wp-query.php 1050 View in context action

Related Hooks

We find related hooks using word stems. parse_query has 2 significant word stem(s): parse, query. Note that some of the hooks below may not appear in all versions of WP.