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.
Метод класса: WC_Order_Item_Product{}
Хуков нет.
Возвращает
Строку.
Использование
$WC_Order_Item_Product = new WC_Order_Item_Product(); $WC_Order_Item_Product->get_subtotal( $context );
- $context(строка)
- What the value is for. Valid values are
'view'and'edit'.
По умолчанию:'view'
Код WC_Order_Item_Product::get_subtotal() WC Order Item Product::get subtotal WC 11.0.1
public function get_subtotal( $context = 'view' ) {
return $this->get_prop( 'subtotal', $context );
}