Used By
Used By | Description |
---|---|
wp-includes/class-wp-query.php: WP_Query::have_posts() | Determines whether there are more posts available in the loop. |
wp-includes/query.php: rewind_posts() | Rewind the loop posts. |
Rewind the posts and reset post index.
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]; } }
Version | Description |
---|---|
1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_query/rewind_posts