Automattic\WooCommerce\Proxies

LegacyProxy::call_function()publicWC 1.0

Call a user function. This should be used to execute any non-idempotent function, especially those in the includes directory or provided by WordPress.

Method of the class: LegacyProxy{}

No Hooks.

Return

Mixed. The result from the function.

Usage

$LegacyProxy = new LegacyProxy();
$LegacyProxy->call_function( $function_name, ...$parameters );
$function_name(string) (required)
The function to execute.
...$parameters(mixed) (required)
The parameters to pass to the function.

LegacyProxy::call_function() code WC 9.6.1

public function call_function( $function_name, ...$parameters ) {
	return call_user_func_array( $function_name, $parameters );
}