WP_CLI\Iterators

Query::rewind()publicWP-CLI 1.0

Method of the class: Query{}

No Hooks.

Return

null. Nothing.

Usage

$Query = new Query();
$Query->rewind();

Query::rewind() code WP-CLI 2.8.0-alpha

public function rewind() {
	$this->results          = [];
	$this->global_index     = 0;
	$this->index_in_results = 0;
	$this->offset           = 0;
	$this->depleted         = false;
}