WordPress at a glance
function is not described

WP_Query::rewind_posts() WP 1.5.0

Rewind the posts and reset post index.

This is a method of the class: WP_Query

No Hooks.

Return

Null. Nothing.

Usage

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

Changelog

Since 1.5.0 Introduced.

Code of WP Query::rewind posts: wp-includes/class-wp-query.php WP 5.2.2

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