Automattic\WooCommerce\Internal\RestApi\Routes\V4\Orders\Schema
OrderSchema::init
Initialize the schema.
Method of the class: OrderSchema{}
No Hooks.
Returns
null. Nothing (null).
Usage
$OrderSchema = new OrderSchema(); $OrderSchema->init( $order_item_schema, $order_coupon_schema, $order_fee_schema, $order_tax_schema, $order_shipping_schema );
- $order_item_schema(OrderItemSchema) (required)
- The order item schema.
- $order_coupon_schema(OrderCouponSchema) (required)
- The order coupon schema.
- $order_fee_schema(OrderFeeSchema) (required)
- The order fee schema.
- $order_tax_schema(OrderTaxSchema) (required)
- The order tax schema.
- $order_shipping_schema(OrderShippingSchema) (required)
- The order shipping schema.
OrderSchema::init() OrderSchema::init code WC 10.4.3
final public function init( OrderItemSchema $order_item_schema, OrderCouponSchema $order_coupon_schema, OrderFeeSchema $order_fee_schema, OrderTaxSchema $order_tax_schema, OrderShippingSchema $order_shipping_schema ) {
$this->order_item_schema = $order_item_schema;
$this->order_coupon_schema = $order_coupon_schema;
$this->order_fee_schema = $order_fee_schema;
$this->order_tax_schema = $order_tax_schema;
$this->order_shipping_schema = $order_shipping_schema;
}