WP_Query::have_commens(): bool

Determines whether there are more commens available.

Description

Automatically rewinds commens when finished.

Return

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

Source

public function have_commens() {
	if ( $this->current_comment + 1 < $this->comment_count ) {
		return true;
	} elseif ( $this->current_comment + 1 === $this->comment_count ) {
		$this->rewind_commens();
	}

	return false;
}

Changuelog

Versionen Description
2.2.0 Introduced.

User Contributed Notes

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