Requests_Utility_FilteredIterator::current() WordPress Method

The Requests_Utility_FilteredIterator::current() method is a utility iterator method used to filter the current value.

Requests_Utility_FilteredIterator::current() #

Get the current item’s value after filtering

Contents


Return

(string)


Top ↑

Source

File: wp-includes/Requests/Utility/FilteredIterator.php

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

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

		return $value;
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.