WpOrg\Requests\Response

Headers::getIterator()publicWP 1.0

Get an iterator for the data

Converts the internally stored values to a comma-separated string if there is more than one value for a key.

Метод класса: Headers{}

Хуков нет.

Возвращает

\ArrayIterator.

Использование

$Headers = new Headers();
$Headers->getIterator();

Код Headers::getIterator() WP 6.6.2

public function getIterator() {
	return new FilteredIterator($this->data, [$this, 'flatten']);
}