Core Function
View Source on Trac ↗ is_main_query()
is_main_query( ) Determines whether the query is the main query.
Return Value
(bool)
Whether the query is the main query.
Function Information
Since Version
3.3.0
Source File
wp-includes/query.php
Advertisement