WPDev.one
Core Function
View Source on Trac ↗

in_the_loop()

in_the_loop( )

Determines whether the caller is in the Loop.

Return Value

(bool)
True if caller is within loop, false if loop hasn't started or ended.

Function Information

Since Version
2.0.0
Source File
wp-includes/query.php
Advertisement