WpOrg\Requests\Utility

FilteredIterator::current()publicWP 1.0ReturnTypeWillChange

Get the current item's value after filtering

Method of the class: FilteredIterator{}

No Hooks.

Return

String.

Usage

$FilteredIterator = new FilteredIterator();
$FilteredIterator->current();

FilteredIterator::current() code WP 6.7.1

public function current() {
	$value = parent::current();

	if (is_callable($this->callback)) {
		$value = call_user_func($this->callback, $value);
	}

	return $value;
}