On this page
WP_Query::rewind_comments()
Rewind the comments, resets the comment index and comment to first.
Source
File: wp-includes/class-wp-query.php. View all references
public function rewind_comments() {
$this->current_comment = -1;
if ( $this->comment_count > 0 ) {
$this->comment = $this->comments[0];
}
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Query::have_comments() wp-includes/class-wp-query.php | Whether there are more comments available. |
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_query/rewind_comments