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.


Mixed. The result from the function.


$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 8.9.0

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