WpOrg\Requests\Utility

FilteredIterator::current()publicWP 1.0ReturnTypeWillChange

Get the current item's value after filtering

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

Хуков нет.

Возвращает

Строку.

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

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

Код FilteredIterator::current() WP 6.6.1

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

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

	return $value;
}