Requests_Utility_FilteredIterator::__construct()publicWP 1.0

Create a new iterator

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

Хуков нет.

Возвращает

null. Ничего.

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

$Requests_Utility_FilteredIterator = new Requests_Utility_FilteredIterator();
$Requests_Utility_FilteredIterator->__construct( $data, $callback );
$data(массив) (обязательный)
-
$callback(callable) (обязательный)
Callback to be called on each value

Код Requests_Utility_FilteredIterator::__construct() WP 6.1.1

public function __construct($data, $callback) {
	parent::__construct($data);

	$this->callback = $callback;
}