WC_Order_Item_Product::get_subtotal()
Gets the item subtotal. This is the price of the item times the quantity excluding taxes before coupon discounts.
Method of the class: WC_Order_Item_Product{}
No Hooks.
Return
String
.
Usage
$WC_Order_Item_Product = new WC_Order_Item_Product(); $WC_Order_Item_Product->get_subtotal( $context );
- $context(string)
- What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'
WC_Order_Item_Product::get_subtotal() WC Order Item Product::get subtotal code WC 9.4.2
public function get_subtotal( $context = 'view' ) { return $this->get_prop( 'subtotal', $context ); }