WP_Query::rewind_comments()

In this article

Rewinds the comments, resets the comment index and comment to first.

Source

public function rewind_comments() {
	$this->current_comment = -1;
	if ( $this->comment_count > 0 ) {
		$this->comment = $this->comments[0];
	}
}

Changelog

VersionDescription
2.2.0Introduced.

User Contributed Notes

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