WordPress at Your Fingertips
function is not described


LegacyProxy::call_function() public WC 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.

{} It's a 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.

Code of LegacyProxy::call_function() WC 5.9.0

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