WordPress at Your Fingertips
function is not described

Requests_Utility_FilteredIterator::__construct() public WP 1.0

Create a new iterator

{} It's a method of the class: Requests_Utility_FilteredIterator{}

No Hooks.

Return

null. Nothing.

Usage

$Requests_Utility_FilteredIterator = new Requests_Utility_FilteredIterator();
$Requests_Utility_FilteredIterator->__construct( $data, $callback );
$data(array) (required)
-
$callback(callable) (required)
Callback to be called on each value

Code of Requests_Utility_FilteredIterator::__construct() WP 5.8

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

	$this->callback = $callback;
}