WP_Query::have_comments(): bool

In this article

Determines whether there are more comments available.

Description

Automatically rewinds comments when finished.

Return

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

Source

 *
 * Calls the 'loop_end' action when the loop is complete.
 *
 * @since 1.5.0
 *
 * @return bool True if posts are available, false if end of the loop.
 */
public function have_posts() {
	if ( $this->current_post + 1 < $this->post_count ) {

Changelog

VersionDescription
2.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.