WPDev.one
Core Function
View Source on Trac ↗

have_comments()

have_comments( )

Determines whether current WordPress query has comments to loop over.

Return Value

(bool)
True if comments are available, false if no more comments.

Function Information

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