Automattic\WooCommerce\Proxies
LegacyProxy::call_function()
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() LegacyProxy::call function WC 8.7.0
public function call_function( $function_name, ...$parameters ) { return call_user_func_array( $function_name, $parameters ); }