WordPress at a glance
function is not described

WP_Query::rewind_posts() public WP 1.5.0

Rewind the posts and reset post index.

It's a method of the class: WP_Query{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_Query = new WP_Query();
$WP_Query->rewind_posts();

Changelog

Since 1.5.0 Introduced.

Code of WP_Query::rewind_posts() WP 5.5.1

<?php
public function rewind_posts() {
	$this->current_post = -1;
	if ( $this->post_count > 0 ) {
		$this->post = $this->posts[0];
	}
}