Method | Description | |
---|---|---|
delete_items ( $order, string $type = null ) | Remove all line items (products, coupons, shipping, taxes) from the order. | |
get_payment_token_ids ( $order ) : array | Get token ids for an order. | |
read_items ( WC_Order $order, string $type ) : array | Read order items of a specific type from the database for this order. | |
update_payment_token_ids ( $order, array $token_ids ) | Update token ids for an order. |
public delete_items ( $order, string $type = null ) | ||
$type | string | Order item type. Default null. |
public get_payment_token_ids ( $order ) : array | ||
return | array |
public read_items ( WC_Order $order, string $type ) : array | ||
$order | WC_Order | |
$type | string | |
return | array |
public update_payment_token_ids ( $order, array $token_ids ) | ||
$token_ids | array |