WP_CLI\Iterators
Query::valid()
Метод класса: Query{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Query = new Query(); $Query->valid();
Код Query::valid() Query::valid WP-CLI 2.8.0-alpha
public function valid() { if ( $this->depleted ) { return false; } if ( ! isset( $this->results[ $this->index_in_results ] ) ) { $items_loaded = $this->load_items_from_db(); if ( ! $items_loaded ) { $this->rewind(); $this->depleted = true; return false; } $this->index_in_results = 0; } return true; }