WordPress hook directory
posts_pre_query

WordPress version history for posts_pre_query

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

Version File Line Type
4.6 wp-includes/query.php 3580 View in context filter
4.7 wp-includes/class-wp-query.php 2771 View in context filter
4.8 wp-includes/class-wp-query.php 2781 View in context filter
4.9 wp-includes/class-wp-query.php 2756 View in context filter
5.0 wp-includes/class-wp-query.php 2756 View in context filter
5.1 wp-includes/class-wp-query.php 2904 View in context filter

Related Hooks

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