WP_Query::rewind_posts()
Rewind the posts and reset post index.
Description Description
Source Source
File: wp-includes/class-wp-query.php
public function rewind_posts() {
$this->current_post = -1;
if ( $this->post_count > 0 ) {
$this->post = $this->posts[0];
}
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |