WP_Query::rewind_comments() – Rewind the comments, resets the comment index and comment to first.

You appear to be a bot. Output may be restricted

Description

Rewind the comments, resets the comment index and comment to first.

Usage

WP_Query::rewind_comments();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/class-wp-query.php
Lines:

1 to 6 of 6
  public function rewind_comments() {
    $this->current_comment = -1;
    if ( $this->comment_count > 0 ) {
      $this->comment = $this->comments[0];
    }
  }
 

 View on GitHub View on Trac