WordPress hook directory
loop_start

Description

Runs before the first post of the WordPress loop is processed.

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 loop_start

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

Version File Line Type
2.0 wp-includes/classes.php 699 View in context action
2.0.11 wp-includes/classes.php 726 View in context action
2.1 wp-includes/query.php 1050 View in context action
2.2 wp-includes/query.php 1136 View in context action
2.3 wp-includes/query.php 1342 View in context action
2.5 wp-includes/query.php 1504 View in context action
2.6 wp-includes/query.php 1527 View in context action
2.7 wp-includes/query.php 2384 View in context action
2.8 wp-includes/query.php 2393 View in context action
2.9 wp-includes/query.php 2403 View in context action
3.0 wp-includes/query.php 2575 View in context action
3.1 wp-includes/query.php 2739 View in context action
3.2 wp-includes/query.php 2783 View in context action
3.3 wp-includes/query.php 2792 View in context action
3.4 wp-includes/query.php 2820 View in context action
3.5 wp-includes/query.php 2851 View in context action
3.6 wp-includes/query.php 2868 View in context action
3.7 wp-includes/query.php 3107 View in context action
3.8 wp-includes/query.php 3122 View in context action
3.9 wp-includes/query.php 3503 View in context action
4.0 wp-includes/query.php 3693 View in context action
4.1 wp-includes/query.php 3705 View in context action
4.2 wp-includes/query.php 3733 View in context action
4.3 wp-includes/query.php 3743 View in context action
4.4 wp-includes/query.php 3884 View in context action
4.5 wp-includes/query.php 3875 View in context action
4.6 wp-includes/query.php 3919 View in context action
4.7 wp-includes/class-wp-query.php 3107 View in context action
4.8 wp-includes/class-wp-query.php 3117 View in context action
4.9 wp-includes/class-wp-query.php 3089 View in context action
5.0 wp-includes/class-wp-query.php 3097 View in context action
5.1 wp-includes/class-wp-query.php 3253 View in context action

Related Hooks

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