WP_Query::have_comments() – Whether there are more comments available.
You appear to be a bot. Output may be restricted
Description
Whether there are more comments available.
Automatically rewinds comments when finished.
Usage
$bool = WP_Query::have_comments();
Parameters
Returns
bool True if comments are available, false if no more comments.
Source
File name: wordpress/wp-includes/class-wp-query.php
Lines:
1 to 9 of 9
public function have_comments() { if ( $this->current_comment + 1 < $this->comment_count ) { return true; } elseif ( $this->current_comment + 1 == $this->comment_count ) { $this->WP_Query::rewind_comments(); } return false; }