WordPress at Your Fingertips
function is not described

SimplePie_Registry::call() public WP 1.0

Call a static method for a type

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

No Hooks.

Return

Mixed.

Usage

$SimplePie_Registry = new SimplePie_Registry();
$SimplePie_Registry->&call( $type, $method, $parameters );
$type(string) (required)
-
$method(string) (required)
-
$parameters(array)
-
Default: array()

Code of SimplePie_Registry::call() WP 5.8.2

public function &call($type, $method, $parameters = array())
{
	$class = $this->get_class($type);

	if (in_array($class, $this->legacy))
	{
		switch ($type)
		{
			case 'Cache':
				// For backwards compatibility with old non-static
				// Cache::create() methods
				if ($method === 'get_handler')
				{
					$result = @call_user_func_array(array($class, 'create'), $parameters);
					return $result;
				}
				break;
		}
	}

	$result = call_user_func_array(array($class, $method), $parameters);
	return $result;
}