WP_Query::rewind_comments()

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


Description Description


Source Source

File: wp-includes/class-wp-query.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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