Automattic\WooCommerce\Proxies
LegacyProxy::call_static()
Call a static method in a class. This should be used to execute any non-idempotent method in classes from the includes directory.
Метод класса: LegacyProxy{}
Хуков нет.
Возвращает
Разное
. The result from the method.
Использование
$result = LegacyProxy::call_static( $class_name, $method_name, ...$parameters );
- $class_name(строка) (обязательный)
- The name of the class containing the method.
- $method_name(строка) (обязательный)
- The name of the method.
- ...$parameters(разное) (обязательный)
- The parameters to pass to the method.
Код LegacyProxy::call_static() LegacyProxy::call static WC 8.7.0
public function call_static( $class_name, $method_name, ...$parameters ) { return call_user_func_array( "$class_name::$method_name", $parameters ); }