have_comments()
Determines whether current WordPress query has comments to loop over.
Return
(bool) True if comments are available, false if no more comments.
Source
File: wp-includes/query.php
function have_comments() {
global $wp_query;
return $wp_query->have_comments();
}
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |