WordPress hook directory
the_posts

Description

Applied to the list of posts queried from the database after minimal processing for permissions and draft status on single-post pages.

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 the_posts

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 573 View in context filter
2.0 wp-includes/classes.php 673 View in context filter
2.0.11 wp-includes/classes.php 700 View in context filter
2.1 wp-includes/query.php 1023 View in context filter
2.2 wp-includes/query.php 1109 View in context filter
2.3 wp-includes/query.php 1315 View in context filter
2.5 wp-includes/query.php 1477 View in context filter
2.6 wp-includes/query.php 1500 View in context filter
2.7 wp-includes/query.php 2338 View in context filter
2.8 wp-includes/query.php 2349 View in context filter
2.9 wp-includes/query.php 2353 View in context filter
3.0 wp-includes/query.php 2524 View in context filter
3.1 wp-includes/query.php 2688 View in context filter
3.2 wp-includes/query.php 2732 View in context filter
3.3 wp-includes/query.php 2741 View in context filter
3.4 wp-includes/query.php 2757 View in context filter
3.5 wp-includes/query.php 2772 View in context filter
3.6 wp-includes/query.php 2789 View in context filter
3.7 wp-includes/query.php 3028 View in context filter
3.8 wp-includes/query.php 3043 View in context filter
3.9 wp-includes/query.php 3399 View in context filter
4.0 wp-includes/query.php 3589 View in context filter
4.1 wp-includes/query.php 3603 View in context filter
4.2 wp-includes/query.php 3631 View in context filter
4.3 wp-includes/query.php 3637 View in context filter
4.4 wp-includes/query.php 3778 View in context filter
4.5 wp-includes/query.php 3762 View in context filter
4.6 wp-includes/query.php 3806 View in context filter
4.7 wp-includes/class-wp-query.php 2997 View in context filter
4.8 wp-includes/class-wp-query.php 3007 View in context filter
4.9 wp-includes/class-wp-query.php 2982 View in context filter
5.0 wp-includes/class-wp-query.php 2982 View in context filter
5.1 wp-includes/class-wp-query.php 3135 View in context filter

Related Hooks

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