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.

Метод класса: LegacyProxy{}

Хуков нет.


Разное. The result from the function.


$LegacyProxy = new LegacyProxy();
$LegacyProxy->call_function( $function_name, ...$parameters );
$function_name(строка) (обязательный)
The function to execute.
...$parameters(разное) (обязательный)
The parameters to pass to the function.

Код LegacyProxy::call_function() WC 8.7.0

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