WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана


Checkout::__construct() public WC 1.0

Constructor accepts two types of schema; one for the item being returned, and one for the cart as a whole. These may be the same depending on the route.

{} Это метод класса: Checkout{}

Хуков нет.


null. Ничего.


$Checkout = new Checkout();
$Checkout->__construct( $cart_schema, $item_schema, $cart_controller, $order_controller );
$cart_schema(CartSchema) (обязательный)
Schema class for the cart.
Schema class for this route's items if it differs from the cart schema.
По умолчанию: null
$cart_controller(CartController) (обязательный)
Cart controller class.
$order_controller(OrderController) (обязательный)
Order controller class.

Код Checkout::__construct() WC 6.1.1

public function __construct( CartSchema $cart_schema, AbstractSchema $item_schema = null, CartController $cart_controller, OrderController $order_controller ) {
	$this->schema           = is_null( $item_schema ) ? $cart_schema : $item_schema;
	$this->cart_schema      = $cart_schema;
	$this->cart_controller  = $cart_controller;
	$this->order_controller = $order_controller;